Changeset 7749


Ignore:
Timestamp:
01/15/13 10:32:04 (11 years ago)
Author:
marcosw
Message:

Ticket #3289 - Correção para nome de botões em janelas de confirmação

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/expressoMail1_2/js/main.js

    r7745 r7749  
    447447        } 
    448448        }; 
    449         if (confirm(get_lang("delete all attachments confirmation"))) 
    450                 cExecute ("$this.imap_functions.remove_attachments&folder=" 
    451                                 +folder+"&msg_num="+msg_num, call_back); 
     449 
     450        $.Zebra_Dialog(get_lang("delete all attachments confirmation"), { 
     451                'type':     'question', 
     452                'buttons':  [get_lang("Yes"), get_lang("No")], 
     453                'overlay_opacity' : 0.5, 
     454                'width' : 500, 
     455                'custom_class': 'custom-zebra-filter', 
     456                'onClose':  function(caption) { 
     457                        if(caption == get_lang("Yes")) 
     458                                cExecute ("$this.imap_functions.remove_attachments&folder="+folder+"&msg_num="+msg_num, call_back); 
     459                } 
     460        }); 
    452461} 
    453462function watch_changes_in_msg(border_id) 
     
    53125321                    else 
    53135322                    { 
    5314                         if(confirm(get_lang("Do you confirm this import to your Calendar?"))){ 
    5315                             cExecute( import_url + "&from_ajax=true", handler_import_calendar); 
    5316                         } 
     5323                        $.Zebra_Dialog(get_lang("Do you confirm this import to your Calendar?"), { 
     5324                                                        'type':     'question', 
     5325                                                        'buttons':  [get_lang("Yes"), get_lang("No")], 
     5326                                                        'overlay_opacity' : 0.5, 
     5327                                                        'custom_class': 'custom-zebra-filter', 
     5328                                                        'onClose':  function(caption) { 
     5329                                                                if(caption == get_lang("Yes")) 
     5330                                                                        cExecute( import_url + "&from_ajax=true", handler_import_calendar); 
     5331                                                        } 
     5332                                                }); 
    53175333                    } 
    53185334    } 
Note: See TracChangeset for help on using the changeset viewer.