added locale picker to home page. setting locale value in the selector on page load
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 3 Oct 2008 15:47:37 +0000 (15:47 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 3 Oct 2008 15:47:37 +0000 (15:47 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@10751 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/web/opac/skin/default/xml/common/fonts.xml
Open-ILS/web/opac/skin/default/xml/home/homesearch.xml

index 73cab30..c2b7eff 100644 (file)
@@ -7,7 +7,8 @@
                <span style='vertical-align: top;'><a href="javascript:void(0);" onclick="setFontSize('large');"> &common.textsize.large; </a></span>
                <span style='vertical-align: top;'>&nbsp;<span style="font-weight:bold;">|</span>&nbsp;</span>
                <span style='vertical-align: top;'>&common.language;</span>
-               <span id='translation_switch' dojoType="dijit.form.FilteringSelect" store="openils.I18N.localeStore" searchAttr="label" required="false">
+               <span id='translation_switch' dojoType="dijit.form.FilteringSelect" store="openils.I18N.localeStore"
+                    searchAttr="label" required="false" value='<!--#echo var="locale"-->'>
                        <script type="dojo/label" event="onChange">
                                if (this.getValue()) {
                                        location.href = location.href.replace( /opac\/[^\/]+\/skin/, 'opac/' + this.getValue() + '/skin');
index 95a99a2..a5c79e9 100644 (file)
                                </td>
                        </tr>
 
+            <!-- locale picker -->
+            <tr><td align='center' valign='bottom' style='padding-top:10px;'>
+                       <span style='vertical-align: top;'>&common.language;</span>
+                       <span dojoType="dijit.form.FilteringSelect" store="openils.I18N.localeStore" 
+                    searchAttr="label" required="false" value='<!--#echo var="locale"-->'>
+                               <script type="dojo/label" event="onChange">
+                                       if (this.getValue()) {
+                                               location.href = location.href.replace( /opac\/[^\/]+\/skin/, 'opac/' + this.getValue() + '/skin');
+                                       }
+                               </script>
+                       </span>
+            </td></tr>
+
                </tbody>
        </table>