Changeset 1034

Show
Ignore:
Timestamp:
05/10/06 23:58:13 (7 years ago)
Author:
fproulx
Message:

2006-05-10 François Proulx <francois.proulx@…>

  • Fixed Google Maps script path to images.
Location:
trunk/wifidog-auth
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • trunk/wifidog-auth/CHANGELOG

    r1033 r1034  
     12006-05-10 François Proulx <francois.proulx@gmail.com> 
     2        * Fixed Google Maps script path to images. 
     3 
    142006-05-10 François Proulx <francois.proulx@gmail.com> 
    25        * 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  
    154154$script .= "    }\n"; 
    155155$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"; 
    157157$script .= "    hotspots_map.setXmlSourceUrl('" . GMAPS_XML_SOURCE_URL . "');\n"; 
    158158$script .= "    hotspots_map.setHotspotsInfoList('map_hotspots_list');\n"; 
  • trunk/wifidog-auth/wifidog/js/hotspots_status_map.js

    r1024 r1034  
    5252 
    5353// Constructor 
    54 function HotspotsMap(viewport, external_object_name, translations, server_path) 
     54function HotspotsMap(viewport, external_object_name, translations, images_path) 
    5555{ 
    5656    // Init translations 
     
    7373 
    7474        // Init server path 
    75         this.server_path = server_path; 
     75        this.images_path = images_path; 
    7676    } else { 
    7777        alert(this.translations.browser_support); 
     
    322322 
    323323    // 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), 
    326326                                 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), 
    329329                                   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), 
    332332                                      new GPoint(11, 30), new GPoint(11, 1)); 
    333333