Changeset 1034
- Timestamp:
- 05/10/06 23:58:13 (7 years ago)
- Location:
- trunk/wifidog-auth
- Files:
-
- 3 modified
-
CHANGELOG (modified) (1 diff)
-
wifidog/hotspots_map.php (modified) (1 diff)
-
wifidog/js/hotspots_status_map.js (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wifidog-auth/CHANGELOG
r1033 r1034 1 2006-05-10 François Proulx <francois.proulx@gmail.com> 2 * Fixed Google Maps script path to images. 3 1 4 2006-05-10 François Proulx <francois.proulx@gmail.com> 2 5 * Added sweetTitles tooltips script, now if you need to add tooltips simply add the 'title' attribute to you html <a>, <attr>, <accroym> tags -
trunk/wifidog-auth/wifidog/hotspots_map.php
r1030 r1034 154 154 $script .= " }\n"; 155 155 $script .= " translations = new HotspotsMapTranslations('" . addcslashes(_("Sorry, your browser does not support Google Maps."), "'") . "', '" . addcslashes(_("Homepage"), "'") . "', '" . addcslashes(_("Show me on the map"), "'") . "', '" . addcslashes(_("Loading, please wait..."), "'") . "');\n"; 156 $script .= " hotspots_map = new HotspotsMap('map_frame', 'hotspots_map', translations, '" . BASE_NON_SSL_PATH. "');\n";156 $script .= " hotspots_map = new HotspotsMap('map_frame', 'hotspots_map', translations, '" . COMMON_IMAGES_URL . "');\n"; 157 157 $script .= " hotspots_map.setXmlSourceUrl('" . GMAPS_XML_SOURCE_URL . "');\n"; 158 158 $script .= " hotspots_map.setHotspotsInfoList('map_hotspots_list');\n"; -
trunk/wifidog-auth/wifidog/js/hotspots_status_map.js
r1024 r1034 52 52 53 53 // Constructor 54 function HotspotsMap(viewport, external_object_name, translations, server_path)54 function HotspotsMap(viewport, external_object_name, translations, images_path) 55 55 { 56 56 // Init translations … … 73 73 74 74 // Init server path 75 this. server_path = server_path;75 this.images_path = images_path; 76 76 } else { 77 77 alert(this.translations.browser_support); … … 322 322 323 323 // Init marker icons 324 var upIcon = this.createIcon(this. server_path + "images/HotspotStatusMap/up" + image_extension, new GSize(20, 34),325 this. server_path + "images/HotspotStatusMap/shadow.png", new GSize(37, 34),324 var upIcon = this.createIcon(this.images_path + "HotspotStatusMap/up" + image_extension, new GSize(20, 34), 325 this.images_path + "HotspotStatusMap/shadow.png", new GSize(37, 34), 326 326 new GPoint(10, 20), new GPoint(10, 1)); 327 var downIcon = this.createIcon(this. server_path + "images/HotspotStatusMap/down" + image_extension, new GSize(20, 34),328 this. server_path + "images/HotspotStatusMap/shadow.png", new GSize(37, 34),327 var downIcon = this.createIcon(this.images_path + "HotspotStatusMap/down" + image_extension, new GSize(20, 34), 328 this.images_path + "HotspotStatusMap/shadow.png", new GSize(37, 34), 329 329 new GPoint(10, 20), new GPoint(10, 1)); 330 var unknownIcon = this.createIcon(this. server_path + "images/HotspotStatusMap/unknown" + image_extension, new GSize(22, 34),331 this. server_path + "images/HotspotStatusMap/blank.gif", new GSize(22, 34),330 var unknownIcon = this.createIcon(this.images_path + "HotspotStatusMap/unknown" + image_extension, new GSize(22, 34), 331 this.images_path + "HotspotStatusMap/blank.gif", new GSize(22, 34), 332 332 new GPoint(11, 30), new GPoint(11, 1)); 333 333
