Changeset 7543 for trunk/expressoMail1_2/js/search.js
- Timestamp:
- 11/22/12 09:06:13 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoMail1_2/js/search.js
r7536 r7543 563 563 td.id = "td_message_followup_search_"+uid_msg; 564 564 td.setAttribute("class","search-result-item"); 565 td1 = '<div class="flag-edited" style="width:8px;height:6px; "><img src="../prototype/modules/mail/img/flagEditor.png"></div>';565 td1 = '<div class="flag-edited" style="width:8px;height:6px; background-image: url(../prototype/modules/mail/img/mail-sprites.png);background-position: 0 -864px;"></div>'; 566 566 567 567 $(td).click(function(event, ui){ … … 606 606 607 607 $('tr[role="'+messageClickedId+'_'+mailbox+'"] #td_message_followup_search_' + messageClickedId).find(".flag-edited") 608 . html('<img src="../prototype/modules/mail/img/flagEditor.png">');608 .css({"background-image":"url(../prototype/modules/mail/img/mail-sprites.png)","background-position":"0 -864px"}); 609 609 610 610 if (fail) { … … 634 634 DataLayer.commit(false, false, function(){ 635 635 $('tr[role="'+messageClickedId+'_'+mailbox+'"] #td_message_followup_search_' + messageClickedId).find(".flag-edited") 636 . html('<img src="../prototype/modules/mail/img/flagEditor.png">');636 .css({"background-image":"url(../prototype/modules/mail/img/mail-sprites.png)","background-position":"0 -864px"}); 637 637 if(current_folder == mailbox){ 638 638 updateCacheFollowupflag(messageClickedId, mailbox, false); … … 643 643 $('#td_message_followup_' + messageClickedId + ', ' + 644 644 'tr[role="'+messageClickedId+'_'+mailbox+'"] #td_message_followup_search_' + messageClickedId).find(".flag-edited") 645 . find("img").attr("src", "../prototype/modules/mail/img/flagEditor.png").css("margin-left","0");645 .css({"background-image":"url(../prototype/modules/mail/img/mail-sprites.png)","background-position":"0 -864px","margin-left":"0"}); 646 646 }else{ 647 647 updateCacheFollowupflag(messageClickedId, mailbox, false); … … 650 650 651 651 $('tr[role="'+messageClickedId+'_'+mailbox+'"] #td_message_followup_search_' + messageClickedId).find(".flag-edited") 652 . find("img").attr("src", "../prototype/modules/mail/img/flagEditor.png").css("margin-left","0");652 .css({"background-image":"url(../prototype/modules/mail/img/mail-sprites.png)","background-position":"0 -864px","margin-left":"0"}); 653 653 } 654 654 }); … … 656 656 } else { 657 657 $('tr[role="'+messageClickedId+'_'+mailbox+'"] #td_message_followup_search_' + messageClickedId).find(".flag-edited") 658 . html('<img src="../prototype/modules/mail/img/flagEditor.png">');658 .css({"background-image":"url(../prototype/modules/mail/img/mail-sprites.png)","background-position":"0 -864px"}); 659 659 $('tr[role="'+messageClickedId+'_'+mailbox+'"] #td_message_followup_search_' + messageClickedId).find(".flag-edited").css("background", followupColor); 660 660 $(this).parents('[role="'+messageClickedId+'_'+mailbox+'"]').attr('class', 'selected_msg').find(':checkbox').trigger('click');
Note: See TracChangeset
for help on using the changeset viewer.