[Svn] r3782 - in trunk/roundcubemail: program/js skins/default/templates

trac at roundcube.net trac at roundcube.net
Wed Jun 23 14:50:57 CEST 2010


Author: alec
Date: 2010-06-23 07:50:57 -0500 (Wed, 23 Jun 2010)
New Revision: 3782

Modified:
   trunk/roundcubemail/program/js/app.js
   trunk/roundcubemail/skins/default/templates/mail.html
Log:
- Hide disabled fieldsets in messages list menu


Modified: trunk/roundcubemail/program/js/app.js
===================================================================
--- trunk/roundcubemail/program/js/app.js	2010-06-23 12:32:39 UTC (rev 3781)
+++ trunk/roundcubemail/program/js/app.js	2010-06-23 12:50:57 UTC (rev 3782)
@@ -1731,7 +1731,7 @@
   {
     var update, add_url = '';
 
-    if (sort_col === null)
+    if (typeof sort_col == 'undefined')
       sort_col = this.env.sort_col;
     if (!sort_order)
       sort_order = this.env.sort_order;

Modified: trunk/roundcubemail/skins/default/templates/mail.html
===================================================================
--- trunk/roundcubemail/skins/default/templates/mail.html	2010-06-23 12:32:39 UTC (rev 3781)
+++ trunk/roundcubemail/skins/default/templates/mail.html	2010-06-23 12:50:57 UTC (rev 3782)
@@ -187,6 +187,7 @@
   </ul>
 </fieldset>
 <roundcube:endif />
+<roundcube:if condition="!in_array('list_cols', (array)config:dont_override)" />
 <fieldset class="thinbordered"><legend><roundcube:label name="listcolumns" /></legend>
   <ul class="toolbarmenu">
     <li><input type="checkbox" name="list_col[]" value="threads" id="cols_threads" checked="checked" disabled="disabled" /><label for="cols_threads" class="disabled"><roundcube:label name="threads" /></label></li>
@@ -200,6 +201,8 @@
     <li><input type="checkbox" name="list_col[]" value="flag" id="cols_flag" /><label for="cols_flag"><roundcube:label name="flag" /></label></li>
   </ul>
 </fieldset>
+<roundcube:endif />
+<roundcube:if condition="!in_array('message_sort_col', (array)config:dont_override)" />
 <fieldset class="thinbordered"><legend><roundcube:label name="listsorting" /></legend>
   <ul class="toolbarmenu">
     <li><input type="radio" name="sort_col" value="" id="sort_default" /><label for="sort_default"><roundcube:label name="nonesort" /></label></li>
@@ -212,12 +215,15 @@
     <li><input type="radio" name="sort_col" value="size" id="sort_size" /><label for="sort_size"><roundcube:label name="size" /></label></li>
   </ul>
 </fieldset>
+<roundcube:endif />
+<roundcube:if condition="!in_array('message_sort_order', (array)config:dont_override)" />
 <fieldset><legend><roundcube:label name="listorder" /></legend> 
 	  <ul class="toolbarmenu"> 
 	    <li><input type="radio" name="sort_ord" value="ASC" id="sort_asc" /><label for="sort_asc"><roundcube:label name="asc" /></label></li> 
 	    <li><input type="radio" name="sort_ord" value="DESC" id="sort_desc" /><label for="sort_desc"><roundcube:label name="desc" /></label></li> 
 	  </ul> 
 </fieldset>
+<roundcube:endif />
 <div>
   <roundcube:button command="menu-open" id="listmenucancel" type="input" class="button" label="cancel" />
   <roundcube:button command="menu-save" id="listmenusave" type="input" class="button mainaction" label="save" />

_______________________________________________
http://lists.roundcube.net/mailman/listinfo/svn



More information about the Svn mailing list