svn commit: r764492 - /ofbiz/trunk/framework/common/webcommon/includes/header.ftl

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r764492 - /ofbiz/trunk/framework/common/webcommon/includes/header.ftl

hansbak-2
Author: hansbak
Date: Mon Apr 13 14:47:27 2009
New Revision: 764492

URL: http://svn.apache.org/viewvc?rev=764492&view=rev
Log:
make header expand/collaps again

Modified:
    ofbiz/trunk/framework/common/webcommon/includes/header.ftl

Modified: ofbiz/trunk/framework/common/webcommon/includes/header.ftl
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/common/webcommon/includes/header.ftl?rev=764492&r1=764491&r2=764492&view=diff
==============================================================================
--- ofbiz/trunk/framework/common/webcommon/includes/header.ftl (original)
+++ ofbiz/trunk/framework/common/webcommon/includes/header.ftl Mon Apr 13 14:47:27 2009
@@ -118,7 +118,12 @@
         <li class="control-area">
           <p class="collapsed">
             <a href="<@ofbizUrl>logout</@ofbizUrl>">${uiLabelMap.CommonLogout}</a>&nbsp;&nbsp;
-            <a href="${setPreferenceMain?if_exists}?userPrefGroupTypeId=GLOBAL_PREFERENCES&userPrefTypeId=COMPACT_HEADER&userPrefValue=N${StringUtil.wrapString(parametersURL?if_exists)}">&nbsp;&nbsp;</a>
+              <a href="javascript:document.commonPreferences.submit()">&nbsp;&nbsp;</a>
+              <form name="commonPreferences" method="post" action="<@ofbizUrl>setUserPreference</@ofbizUrl>" onSubmit="javascript:submitFormDisableSubmits(this)">
+                <input name="userPrefGroupTypeId" value="GLOBAL_PREFERENCES" type="hidden"/>
+                <input name="userPrefTypeId" value="COMPACT_HEADER" type="hidden"/>
+                <input name="userPrefValue" value="N${StringUtil.wrapString(parametersURL?if_exists)}" type="hidden"/>
+              </form
           </p>
         </li>
       <#else>
@@ -136,8 +141,13 @@
           <#if userLogin?exists>
             <p class="expanded">
               <a href="<@ofbizUrl>logout</@ofbizUrl>">${uiLabelMap.CommonLogout}</a>&nbsp;&nbsp;
-              <a href="${setPreferenceMain?if_exists}?userPrefGroupTypeId=GLOBAL_PREFERENCES&userPrefTypeId=COMPACT_HEADER&userPrefValue=Y${StringUtil.wrapString(parametersURL?if_exists)}">&nbsp;&nbsp;</a>
-            </p>
+              <a href="javascript:document.commonPreferences.submit()">&nbsp;&nbsp;</a>
+              <form name="commonPreferences" method="post" action="<@ofbizUrl>setUserPreference</@ofbizUrl>" onSubmit="javascript:submitFormDisableSubmits(this)">
+                <input name="userPrefGroupTypeId" value="GLOBAL_PREFERENCES" type="hidden"/>
+                <input name="userPrefTypeId" value="COMPACT_HEADER" type="hidden"/>
+                <input name="userPrefValue" value="Y${StringUtil.wrapString(parametersURL?if_exists)}" type="hidden"/>
+              </form
+           </p>
             <#if layoutSettings.topLines?has_content>
               <#list layoutSettings.topLines as topLine>
               <#if topLine.text?exists>