X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;ds=sidebyside;f=plugins%2Fgooglemap%2Fstatic%2Fjs%2Fgooglemap.js;fp=plugins%2Fgooglemaps%2Fstatic%2Fjs%2Fgooglemaps.js;h=118cfa6012876bf446d640c783c4e959b058735b;hb=d549b83164f10793e799da646e6704844607f190;hp=83c5fa9527a8e190f7afba7f27abfee4d5d3e601;hpb=55f628fd2398b231159c148e1dee8302e255640e;p=myslice.git diff --git a/plugins/googlemaps/static/js/googlemaps.js b/plugins/googlemap/static/js/googlemap.js similarity index 88% rename from plugins/googlemaps/static/js/googlemaps.js rename to plugins/googlemap/static/js/googlemap.js index 83c5fa95..118cfa60 100644 --- a/plugins/googlemaps/static/js/googlemaps.js +++ b/plugins/googlemap/static/js/googlemap.js @@ -8,15 +8,15 @@ * - infowindow is not properly reopened when the maps does not have the focus */ -googlemaps_debug=true; -googlemaps_debug_detailed=false; +googlemap_debug=true; +googlemap_debug_detailed=false; (function($){ - var GoogleMaps = Plugin.extend({ + var GoogleMap = Plugin.extend({ init: function(options, element) { - if (googlemaps_debug) messages.debug("GoogleMaps.init"); + if (googlemap_debug) messages.debug("GoogleMap.init"); this._super(options, element); /* Member variables */ @@ -50,7 +50,7 @@ googlemaps_debug_detailed=false; /* PLUGIN EVENTS */ on_show: function(e) { - if (googlemaps_debug) messages.debug("on_show"); + if (googlemap_debug) messages.debug("on_show"); var self = e.data; google.maps.event.trigger(self.map, 'resize'); }, // on_show @@ -62,7 +62,7 @@ googlemaps_debug_detailed=false; /** */ initialize_map: function() { - if (googlemaps_debug) messages.debug("initialize_map"); + if (googlemap_debug) messages.debug("initialize_map"); this.markerCluster = null; this.coords = new Array(); @@ -75,13 +75,13 @@ googlemaps_debug_detailed=false; var domid = this.options.plugin_uuid + manifold.separator + 'map'; var el = document.getElementById(domid); - if (googlemaps_debug) messages.debug("gmap.initialize_map based on domid=" + domid + " el=" + el); + if (googlemap_debug) messages.debug("gmap.initialize_map based on domid=" + domid + " el=" + el); this.map = new google.maps.Map(el, myOptions); this.infowindow = new google.maps.InfoWindow(); }, // initialize_map set_checkbox: function(record, checked) { - if (googlemaps_debug_detailed) messages.debug ("set_checkbox"); + if (googlemap_debug_detailed) messages.debug ("set_checkbox"); /* Default: checked = true */ if (typeof checked === 'undefined') checked = true; @@ -113,7 +113,7 @@ googlemaps_debug_detailed=false; dict_info.in_set = checked; dict_info.marker.content = this.get_marker_content(dict_info.record, checked); - // Thierry - this code seems to cause the googlmap area to go all grayed out + // Thierry - this code seems to cause the googlemap area to go all grayed out // once all the quesries have come back // BEG turning off temporarily // // Update opened infowindow @@ -128,7 +128,7 @@ googlemaps_debug_detailed=false; }, checkbox: function(record, checked) { - if (googlemaps_debug_detailed) messages.debug ("checkbox"); + if (googlemap_debug_detailed) messages.debug ("checkbox"); if (typeof checked === 'undefined') checked = false; @@ -148,14 +148,14 @@ googlemaps_debug_detailed=false; }, get_marker_content: function(record, checked) { - if (googlemaps_debug_detailed) messages.debug ("get_marker_content"); + if (googlemap_debug_detailed) messages.debug ("get_marker_content"); return '
' + this.method + ': ' + get_value(record['resource_hrn']) + '
network: ' + get_value(record['network'])+'