Changeset fb46638 in github
- Timestamp:
- May 25, 2010 3:49:30 AM (3 years ago)
- Branches:
- master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
- Children:
- 3831efb
- Parents:
- 50067d5
- File:
-
- 1 edited
-
program/js/app.js (modified) (10 diffs)
Legend:
- Unmodified
- Added
- Removed
-
program/js/app.js
r50067d5 rfb46638 205 205 206 206 if (this.env.next_uid) { 207 this.enable_command('nextmessage', true); 208 this.enable_command('lastmessage', true); 207 this.enable_command('nextmessage', 'lastmessage', true); 209 208 } 210 209 if (this.env.prev_uid) { 211 this.enable_command('previousmessage', true); 212 this.enable_command('firstmessage', true); 210 this.enable_command('previousmessage', 'firstmessage', true); 213 211 } 214 212 … … 327 325 this.enable_command('subscribe', 'unsubscribe', 'create-folder', 'rename-folder', 'delete-folder', 'enable-threading', 'disable-threading', true); 328 326 329 if (this.gui_objects.identitieslist) 330 { 327 if (this.gui_objects.identitieslist) { 331 328 this.identity_list = new rcube_list_widget(this.gui_objects.identitieslist, {multiselect:false, draggable:false, keyboard:false}); 332 329 this.identity_list.addEventListener('select', function(o){ p.identity_select(o); }); … … 336 333 if (this.env.iid) 337 334 this.identity_list.highlight_row(this.env.iid); 338 } 339 else if (this.gui_objects.sectionslist) 340 { 335 } 336 else if (this.gui_objects.sectionslist) { 341 337 this.sections_list = new rcube_list_widget(this.gui_objects.sectionslist, {multiselect:false, draggable:false, keyboard:false}); 342 338 this.sections_list.addEventListener('select', function(o){ p.section_select(o); }); … … 1074 1070 if (a && message) { 1075 1071 var msg = this.get_label(message); 1076 if (msg == message) 1072 if (msg == message) 1077 1073 msg = 'Loading...'; 1078 1074 … … 2029 2025 } 2030 2026 } 2031 }; 2027 }; 2032 2028 2033 2029 // adds tree icons to specified message row … … 2049 2045 divs.push({'class': null, width: 15}); 2050 2046 } 2051 2047 2052 2048 for (i=divs.length-1; i>=0; i--) { 2053 2049 if (divs[i]['class']) … … 2056 2052 html += '<div style="width:'+divs[i].width+'px" />'; 2057 2053 } 2058 2054 2059 2055 if (html) 2060 2056 $('#rcmtab'+uid).html(html); … … 2691 2687 this.purge_mailbox_test = function() 2692 2688 { 2693 return (this.env.messagecount && (this.env.mailbox == this.env.trash_mailbox || this.env.mailbox == this.env.junk_mailbox 2694 || this.env.mailbox.match('^' + RegExp.escape(this.env.trash_mailbox) + RegExp.escape(this.env.delimiter)) 2689 return (this.env.messagecount && (this.env.mailbox == this.env.trash_mailbox || this.env.mailbox == this.env.junk_mailbox 2690 || this.env.mailbox.match('^' + RegExp.escape(this.env.trash_mailbox) + RegExp.escape(this.env.delimiter)) 2695 2691 || this.env.mailbox.match('^' + RegExp.escape(this.env.junk_mailbox) + RegExp.escape(this.env.delimiter)))); 2696 2692 }; … … 3820 3816 3821 3817 this.name_input.remove(); 3822 3818 3823 3819 if (this.name_input_li) 3824 3820 this.name_input_li.remove(); 3825 3821 3826 3822 this.name_input = this.name_input_li = null; 3827 3823 } … … 4311 4307 this.set_page_buttons = function() 4312 4308 { 4313 this.enable_command('nextpage', (this.env.pagecount > this.env.current_page)); 4314 this.enable_command('lastpage', (this.env.pagecount > this.env.current_page)); 4315 this.enable_command('previouspage', (this.env.current_page > 1)); 4316 this.enable_command('firstpage', (this.env.current_page > 1)); 4309 this.enable_command('nextpage', 'lastpage', (this.env.pagecount > this.env.current_page)); 4310 this.enable_command('previouspage', 'firstpage', (this.env.current_page > 1)); 4317 4311 }; 4318 4312
Note: See TracChangeset
for help on using the changeset viewer.
