From 875ac893f18342384b13726ba4d200e5f76bc0c9 Mon Sep 17 00:00:00 2001
From: thomascube <thomas@roundcube.net>
Date: Wed, 12 Aug 2009 07:12:33 -0400
Subject: [PATCH] Tweak settings page: align with tab list, remove that single advanced option for now, select 'general' section at startup

---
 program/js/app.js |   11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/program/js/app.js b/program/js/app.js
index e7c5289..4ad62b4 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -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 = '';

--
Gitblit v1.9.1