X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=plugins%2Fgooglemaps%2Fstatic%2Fjs%2Fgooglemaps.js;h=2a4df3d689d3b1169107df20a33ccc2eb2919dfa;hb=22dba9d34674e0cc1b285e678bbb7bc6482c58ca;hp=4cfb3d356c7873bccb0d8f8cb0d4097d36d3fbec;hpb=7d681640f9d462220be52cad234bc5b17e21cff3;p=myslice.git diff --git a/plugins/googlemaps/static/js/googlemaps.js b/plugins/googlemaps/static/js/googlemaps.js index 4cfb3d35..2a4df3d6 100644 --- a/plugins/googlemaps/static/js/googlemaps.js +++ b/plugins/googlemaps/static/js/googlemaps.js @@ -23,7 +23,7 @@ googlemaps_debug_detailed=false; // query status this.received_all = false; this.received_set = false; - this.in_set_buffer = Array(); + this.in_set_buffer = []; // key -> { marker, checked } this.map_markers = {} @@ -121,7 +121,7 @@ googlemaps_debug_detailed=false; // this.infowindow.close(); // this.infowindow.open(this.map, dict_info.marker); // this.infowindow.setContent(dict_info.marker.content); - // this.els('map-button').unbind('click').click(this, this._button_click); + // this.elts('map-button').unbind('click').click(this, this._button_click); // END turning off temporarily //var button = this.checkbox(record, checked); //this.el('checkbox', this.id_from_record(method, record)).html(button); @@ -214,7 +214,7 @@ googlemaps_debug_detailed=false; self.infowindow.open(map, marker); // onload of the infowindow on the map, bind a click on a button google.maps.event.addListener(self.infowindow, 'domready', function() { - self.els('map-button').unbind('click').click(self, self._button_click); + self.elts('map-button').unbind('click').click(self, self._button_click); // jQuery(".map-button").click({instance: instance_, infoWindow: object.infowindow}, button_click); }); }); @@ -318,6 +318,8 @@ googlemaps_debug_detailed=false; $.each(this.in_set_buffer, function(i, record) { self.set_checkbox(record, true); }); + // reset + self.in_set_buffer = []; this.unspin(); }