MidCOM svn: r27053 - branches/ragnaroek/midcom/org.routamc.positioning

rambo midcom-commits at lists.midgard-project.org
Wed Nov 2 13:28:50 CET 2011


Author: rambo
Date: Wed Nov  2 13:28:50 2011
New Revision: 27053
URL: http://trac.midgard-project.org/changeset/27053

Log:
use global variable scope

Modified:
   branches/ragnaroek/midcom/org.routamc.positioning/map.php

Modified: branches/ragnaroek/midcom/org.routamc.positioning/map.php
==============================================================================
--- branches/ragnaroek/midcom/org.routamc.positioning/map.php	(original)
+++ branches/ragnaroek/midcom/org.routamc.positioning/map.php	Wed Nov  2 13:28:50 2011
@@ -275,9 +275,9 @@
             $script .= "<script type=\"text/javascript\">\n";            
         }
         $script_body = '';
-        $script_body .= "var mapelement = document.getElementById('{$this->id}');\n";
+        $script_body .= "mapelement = document.getElementById('{$this->id}');\n";
         $script_body .= "if (mapelement) {\n";
-        $script_body .= "    var mapstraction_{$this->id} = new Mapstraction('{$this->id}','{$this->type}', true);\n";
+        $script_body .= "    mapstraction_{$this->id} = new Mapstraction('{$this->id}','{$this->type}', true);\n";
         
         if ($this->type == 'google')
         {


More information about the midcom-commits mailing list