Changeset 214 for trunk/expressoMail1_2
- Timestamp:
- 03/11/08 14:51:58 (16 years ago)
- Location:
- trunk/expressoMail1_2/js
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoMail1_2/js/doiMenuData.js
r69 r214 9 9 10 10 var itens = new Array ( 11 "preferences_mail()|"+get_lang("Preferences")+"|preferences. gif",12 "search_emails(\"\")|"+get_lang("Search")+"|search. gif",13 "filterbox()|"+get_lang("Edit filters")+"|filters. gif",14 "folderbox()|"+get_lang("Edit folders")+"|editfolders. gif",15 "sharebox()|"+get_lang("Share mailbox")+"| editfolders.gif",16 "empty_trash_imap()|"+get_lang("Empty trash")+"|trash. gif"11 "preferences_mail()|"+get_lang("Preferences")+"|preferences.png", 12 "search_emails(\"\")|"+get_lang("Search")+"|search.png", 13 "filterbox()|"+get_lang("Edit filters")+"|filters.png", 14 "folderbox()|"+get_lang("Edit folders")+"|editfolders.png", 15 "sharebox()|"+get_lang("Share mailbox")+"|usersfolders.png", 16 "empty_trash_imap()|"+get_lang("Empty trash")+"|trash.png" 17 17 ); 18 18 -
trunk/expressoMail1_2/js/main.js
r206 r214 156 156 Element('chk_box_select_all_messages').checked = false; 157 157 mail_msg = Element("tbody_box"); 158 159 if ( preferences.use_shortcuts == '1') { 160 var all_messages = Element('tbody_box').childNodes; 161 162 //Last msg is selected 163 if ( exist_className(all_messages[all_messages.length-1], 'selected_shortcut_msg') ) { 164 select_msg('null', 'up', true); 165 } 166 else { 167 if (!select_msg('null', 'down', true)) { 168 select_msg('null', 'up', true); 169 } 170 } 171 } 172 158 173 var msg_to_delete; 159 174 for (var i=0; i<data.msgs_number.length; i++){ 160 175 msg_to_delete = Element(data.msgs_number[i]); 161 176 if (msg_to_delete){ 162 if ( exist_className(msg_to_delete, 'selected_shortcut_msg') && (preferences.use_shortcuts == '1') )163 {164 if (!select_msg('null', 'down', true))165 select_msg('null', 'up', true)166 }167 177 mail_msg.removeChild(msg_to_delete); 168 178 } … … 258 268 mail_msg = Element("tbody_box"); 259 269 data.msgs_number = data.msgs_number.split(","); 260 var msg_to_delete; 261 for (var i=0; i<data.msgs_number.length; i++){ 270 271 if ( preferences.use_shortcuts == '1') { 272 var all_messages = Element('tbody_box').childNodes; 273 274 //Last msg is selected 275 if ( exist_className(all_messages[all_messages.length-1], 'selected_shortcut_msg') ) { 276 select_msg('null', 'up', true); 277 } 278 else { 279 if (!select_msg('null', 'down', true)) { 280 select_msg('null', 'up', true); 281 } 282 } 283 } 284 285 var msg_to_delete; 286 for (var i=0; i<data.msgs_number.length; i++) 287 { 262 288 msg_to_delete = Element(data.msgs_number[i]); 263 if (msg_to_delete){ 264 if ( exist_className(msg_to_delete, 'selected_shortcut_msg') && (preferences.use_shortcuts == '1') ) 265 { 266 if (!select_msg('null', 'down', true)) 267 select_msg('null', 'up', true) 268 } 289 if (msg_to_delete) 269 290 mail_msg.removeChild(msg_to_delete); 270 }271 291 } 272 292
Note: See TracChangeset
for help on using the changeset viewer.