[Svn] r5268 - trunk/roundcubemail/program/js

trac at roundcube.net trac at roundcube.net
Thu Sep 22 12:04:31 CEST 2011


Author: alec
Date: 2011-09-22 05:04:31 -0500 (Thu, 22 Sep 2011)
New Revision: 5268

Modified:
   trunk/roundcubemail/program/js/app.js
Log:
- Small cleanup + fix: list contacts on when list object is found


Modified: trunk/roundcubemail/program/js/app.js
===================================================================
--- trunk/roundcubemail/program/js/app.js	2011-09-22 08:48:05 UTC (rev 5267)
+++ trunk/roundcubemail/program/js/app.js	2011-09-22 10:04:31 UTC (rev 5268)
@@ -278,6 +278,9 @@
         if (this.gui_objects.folderlist)
           this.env.contactfolders = $.extend($.extend({}, this.env.address_sources), this.env.contactgroups);
 
+        this.enable_command('add', 'import', this.env.writable_source);
+        this.enable_command('list', 'listgroup', 'listsearch', 'advanced-search', true);
+
         if (this.gui_objects.contactslist) {
 
           this.contact_list = new rcube_list_widget(this.gui_objects.contactslist,
@@ -300,6 +303,7 @@
           }
 
           this.update_group_commands();
+          this.command('list');
         }
 
         this.set_page_buttons();
@@ -319,22 +323,13 @@
           if (this.env.action == 'add' || this.env.action == 'edit')
               this.init_contact_form();
         }
+
         if (this.gui_objects.qsearchbox) {
           this.enable_command('search', 'reset-search', 'moveto', true);
         }
 
-        if (this.contact_list && this.contact_list.rowcount > 0)
-          this.enable_command('export', true);
-
-        this.enable_command('add', 'import', this.env.writable_source);
-        this.enable_command('list', 'listgroup', 'listsearch', 'advanced-search', true);
-
-        // load contacts of selected source
-        if (!this.env.action)
-          this.command('list', this.env.source);
         break;
 
-
       case 'settings':
         this.enable_command('preferences', 'identities', 'save', 'folders', true);
 

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



More information about the Svn mailing list