Permalink
Browse files

Fixed an occasional bork in selecting popup div for highcharts

  • Loading branch information...
1 parent 53c9bbb commit 4e25881cfe43f379d345bd42d8a8c5bdde70d341 @evenwestvang committed Mar 13, 2011
Showing with 5 additions and 191 deletions.
  1. +3 −2 public/app.js
  2. +0 −176 public/js_libs_min.js
  3. +0 −2 public/maps_infobox.js
  4. +0 −7 public/settings.js
  5. +0 −2 views/layout.haml
  6. +2 −2 views/statistics.haml
  7. 0 views/stats.haml
View
@@ -240,7 +240,6 @@ function MarkerKeeper(map) {
});
});
- resultChartOptions.chart.renderTo = $(".chartBox")[0];
resultChartOptions.series = [averageSerie];
var sorted_keys = []
for (key in series) {
@@ -250,6 +249,7 @@ function MarkerKeeper(map) {
for (key in sorted_keys) {
resultChartOptions.series.push(series[sorted_keys[key]]);
}
+ resultChartOptions.chart.renderTo = infoBox.children().last()[0];
chart = new Highcharts.Chart(resultChartOptions);
var schoolPosition = new google.maps.LatLng(data.location[0],data.location[1]);
@@ -260,6 +260,7 @@ function MarkerKeeper(map) {
zoom: 0
}
};
+
var sv = new google.maps.StreetViewService();
sv.getPanoramaByLocation(schoolPosition, 100, processSVData);
function processSVData(data, status) {
@@ -324,7 +325,7 @@ var ButtonFactory = (function() {
var h = 1;
var s = 100;
var l = 45;
- var a = 0.8;
+ var a = 0.75;
this.getColor = function(val, useContrast) {
if (!useContrast) {
Oops, something went wrong.

0 comments on commit 4e25881

Please sign in to comment.