[Svn] r1344 bugs

A.L.E.C alec at alec.pl
Wed May 7 12:01:28 CEST 2008


till wrote:
>>
>>  Ok, I know when it isn't working. When you click Compose before browser
>>  gets _action=getunread response (I must wait few seconds). So, it's not
>>  related to r1344.
>>     
>
> Race conditions!
>
>   

Yup. How about something like that?:

--- app.js.old  2008-05-07 11:16:25.000000000 +0200
+++ app.js      2008-05-07 11:59:27.280399044 +0200
@@ -226,6 +226,7 @@
         if (this.gui_objects.mailboxlist)
         {
           this.gui_objects.folderlist = this.gui_objects.mailboxlist;
+         this.enable_command('compose', false);
           this.http_request('getunread', '');
         }

@@ -3531,6 +3532,7 @@

       case 'check-recent':
       case 'getunread':
+       this.enable_command('compose', true);
        this.enable_command('show', 'expunge', 'select-all', 
'select-none', 'sort', (this.env.messagecount > 0));
        this.enable_command('purge', (this.env.messagecount && 
(this.env.mailbox==this.env.trash_mailbox || 
this.env.mailbox==this.env.junk_mailbox)));

-- 
Aleksander 'A.L.E.C' Machniak http://alec.pl gg:2275252
LAN Management System Developer http://lms.org.pl
Roundcube Webmail Project Developer http://roundcube.net
_______________________________________________
http://lists.roundcube.net/mailman/listinfo/svn



More information about the Svn mailing list