replace does not, um, replace in place
authormiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 31 Jul 2008 04:08:39 +0000 (04:08 +0000)
committermiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 31 Jul 2008 04:08:39 +0000 (04:08 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@10202 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/web/opac/skin/default/xml/footer.xml

index 02c6704..91a443c 100644 (file)
             <a href='http://open-ils.org'><img style='border:none;' src='../../../../images/eg_tiny_logo.jpg'/></a>
         </div>
 
-        <div id='translation_switch' dojoType="dijit.form.FilteringSelect" store="openils.I18N.localeStore" searchAttr="locale" displayAttr="label">
-            <script type="dojo/connect" event="onChange">
+        <div
+                       id='translation_switch'
+                       dojoType="dijit.form.FilteringSelect"
+                       store="openils.I18N.localeStore"
+                       searchAttr="label"
+               >
+            <script type="dojo/label" event="onChange">
                 if (this.getValue()) {
-                    location.href.replace( /opac\/[^\/]+\/skin/, 'opac/' + this.getValue() + '/skin');
+                    location.href = location.href.replace( /opac\/[^\/]+\/skin/, 'opac/' + this.getValue() + '/skin');
                 }
             </script>
         </div>