You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by ha...@apache.org on 2009/04/13 16:47:28 UTC

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

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="<@o...@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="<@o...@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="<@o...@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="<@o...@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>