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

trac at roundcube.net trac at roundcube.net
Wed Aug 12 13:12:33 CEST 2009


Author: thomasb
Date: 2009-08-12 06:12:33 -0500 (Wed, 12 Aug 2009)
New Revision: 2855

Modified:
   trunk/roundcubemail/program/js/app.js
   trunk/roundcubemail/skins/default/settings.css
   trunk/roundcubemail/skins/default/templates/settings.html
   trunk/roundcubemail/skins/default/templates/settingsedit.html
Log:
Tweak settings page: align with tab list, remove that single advanced option for now, select 'general' section at startup

Modified: trunk/roundcubemail/program/js/app.js
===================================================================
--- trunk/roundcubemail/program/js/app.js	2009-08-12 11:00:13 UTC (rev 2854)
+++ trunk/roundcubemail/program/js/app.js	2009-08-12 11:12:33 UTC (rev 2855)
@@ -326,11 +326,11 @@
         
         if (this.env.action=='identities') {
           this.enable_command('add', this.env.identities_level < 2);
-          }
-	else if (this.env.action=='edit-identity' || this.env.action=='add-identity') {
+        }
+        else if (this.env.action=='edit-identity' || this.env.action=='add-identity') {
           this.enable_command('add', this.env.identities_level < 2);
           this.enable_command('save', 'delete', 'edit', true);
-          }
+        }
         else if (this.env.action=='folders')
           this.enable_command('subscribe', 'unsubscribe', 'create-folder', 'rename-folder', 'delete-folder', true);
 
@@ -350,7 +350,8 @@
           this.sections_list.addEventListener('select', function(o){ p.section_select(o); });
           this.sections_list.init();
           this.sections_list.focus();
-	  }
+          this.sections_list.select('general');  // open first section by default
+        }
         else if (this.gui_objects.subscriptionlist)
           this.init_subscription_list();
 
@@ -2948,7 +2949,7 @@
   // preferences section select and load options frame
   this.section_select = function(list)
     {
-    var id = list.get_single_selection()
+    var id = list.get_single_selection();
     
     if (id) {
       var add_url = '';

Modified: trunk/roundcubemail/skins/default/settings.css
===================================================================
--- trunk/roundcubemail/skins/default/settings.css	2009-08-12 11:00:13 UTC (rev 2854)
+++ trunk/roundcubemail/skins/default/settings.css	2009-08-12 11:12:33 UTC (rev 2855)
@@ -316,11 +316,6 @@
   padding-right: 10px;
 }
 
-#prefs-details table tr.advanced
-{
-  display: none;
-}
-
 #formfooter
 {
   width: 100%;

Modified: trunk/roundcubemail/skins/default/templates/settings.html
===================================================================
--- trunk/roundcubemail/skins/default/templates/settings.html	2009-08-12 11:00:13 UTC (rev 2854)
+++ trunk/roundcubemail/skins/default/templates/settings.html	2009-08-12 11:12:33 UTC (rev 2855)
@@ -7,9 +7,9 @@
 <script type="text/javascript" src="/splitter.js"></script>
 
 <style type="text/css">
-#sectionslist { width: <roundcube:exp expression="!empty(cookie:prefsviewsplitter) ? cookie:prefsviewsplitter-5 : 205" />px; }
-#prefs-box { left: <roundcube:exp expression="!empty(cookie:prefsviewsplitter) ? cookie:prefsviewsplitter+5 : 205" />px;
-<roundcube:exp expression="browser:ie ? ('width:expression((parseInt(this.parentNode.offsetWidth)-'.(!empty(cookie:prefsviewsplitter) ? cookie:prefsviewsplitter+5 : 205).')+\\'px\\');') : ''" />
+#sectionslist { width: <roundcube:exp expression="!empty(cookie:prefsviewsplitter) ? cookie:prefsviewsplitter-5 : 190" />px; }
+#prefs-box { left: <roundcube:exp expression="!empty(cookie:prefsviewsplitter) ? cookie:prefsviewsplitter+5 : 200" />px;
+<roundcube:exp expression="browser:ie ? ('width:expression((parseInt(this.parentNode.offsetWidth)-'.(!empty(cookie:prefsviewsplitter) ? cookie:prefsviewsplitter+5 : 200).')+\\'px\\');') : ''" />
 }
 </style>
 
@@ -27,7 +27,7 @@
 </div>
 
 <script type="text/javascript">
-  var prefviewsplit = new rcube_splitter({id:'prefsviewsplitter', p1: 'sectionslist', p2: 'prefs-box', orientation: 'v', relative: true, start: 200});
+  var prefviewsplit = new rcube_splitter({id:'prefsviewsplitter', p1: 'sectionslist', p2: 'prefs-box', orientation: 'v', relative: true, start: 195});
   rcmail.add_onload('prefviewsplit.init()');
 </script>
 

Modified: trunk/roundcubemail/skins/default/templates/settingsedit.html
===================================================================
--- trunk/roundcubemail/skins/default/templates/settingsedit.html	2009-08-12 11:00:13 UTC (rev 2854)
+++ trunk/roundcubemail/skins/default/templates/settingsedit.html	2009-08-12 11:12:33 UTC (rev 2855)
@@ -20,12 +20,7 @@
 <roundcube:button command="save" type="input" class="button mainaction" label="save" />
 </div>
 
-<div class="footerright">
-<label for="advswitch"><roundcube:label name="advancedoptions"></label>
-<input type="checkbox" id="advswitch" name="_advanced" value="0" onclick="rcube_show_advanced(this.checked)" />
 </div>
-
-</div>
 <p> </p>
 
 </form>

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



More information about the Svn mailing list