Changeset 3806 for branches/2.2/expressoMail1_2/js/draw_api.js
- Timestamp:
- 02/23/11 15:03:49 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2/expressoMail1_2/js/draw_api.js
r3798 r3806 1386 1386 1387 1387 if (info_msg.Flagged == "F"){ 1388 option_mark_important.onclick = function() { changeLinkState(this,'important'); 1389 proxy_mensagens.proxy_set_message_flag(folder_id,'unflagged'); 1390 write_msg(get_lang('Message marked as ')+get_lang("Normal")); 1388 option_mark_important.onclick = function() { 1389 var _this = this; 1390 proxy_mensagens.proxy_set_message_flag(folder_id,'unflagged', function(success){ 1391 if (success) { 1392 changeLinkState(_this, 'important'); 1393 write_msg(get_lang('Message marked as ') + get_lang("Normal")); 1394 } 1395 } ); 1396 1391 1397 }; 1392 1398 option_mark_important.innerHTML = get_lang("Normal"); … … 2126 2132 case 'normal': 2127 2133 { 2128 el.onclick = function(){ changeLinkState(el,'important');proxy_mensagens.proxy_set_message_flag(currentTab.substr(0,currentTab.indexOf("_r")),'unflagged');write_msg(get_lang('Message marked as ')+get_lang("Normal"))} 2134 el.onclick = function(){ 2135 var _this = this; 2136 proxy_mensagens.proxy_set_message_flag(currentTab.substr(0,currentTab.indexOf("_r")),'unflagged', function(success){ 2137 if (success) { 2138 changeLinkState(_this, 'important'); 2139 write_msg(get_lang('Message marked as ') + get_lang("Normal")); 2140 } 2141 } ); 2142 } 2129 2143 break; 2130 2144 }
Note: See TracChangeset
for help on using the changeset viewer.