Changeset 6175


Ignore:
Timestamp:
05/14/12 15:13:51 (12 years ago)
Author:
gustavo
Message:

Ticket #2725 - Padronizar dialog de confirmação

File:
1 edited

Legend:

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

    r6135 r6175  
    29962996        } 
    29972997         
    2998         var _div = document.createElement("div"); 
    2999                 _div.innerHTML = '<p style="margin:10px 5px 5px 5px;">' + 
    3000                                                         '<span class="ui-icon ui-icon-alert" style="float:left; margin:0 7px 20px 0;"></span>'+ 
    3001                                                         get_lang('Do you really want to empty your trash folder?') + 
    3002                                                         '</p>'; 
    3003         $(_div).dialog( 
    3004         { 
    3005                 resizable: false, 
    3006                 title: get_lang('Empty Trash'), 
    3007                 position: 'center', 
    3008                 width: 350, 
    3009                 height:140, 
    3010                 modal: true, 
    3011                 buttons: [ 
    3012                                         { 
    3013                                                 text: get_lang("Yes"), 
    3014                                                 click: function() 
    3015                                                 { 
    3016                                                  cExecute ("$this.imap_functions.empty_folder&clean_folder="+"imapDefaultTrashFolder", handler_empty_trash); 
    3017                                                  $( this ).dialog( "close" ); 
    3018                                                 }, 
    3019                                                 style: "margin-top: -2.1em"  
    3020                                         }, 
    3021                                         { 
    3022                                                 text: get_lang("No"), 
    3023                                                 click: function() 
    3024                                                 { 
    3025                                                         $( this ).dialog( "close" );                                                     
    3026                                                 }, 
    3027                                                 style: "margin-top: -2.1em"  
    3028                                         }, 
    3029                                 ] 
     2998        $.Zebra_Dialog(get_lang('Do you really want to empty your trash folder?'), { 
     2999                'type':     'question', 
     3000                'title':    get_lang('Empty Trash'), 
     3001                'buttons':  [get_lang("Yes"), get_lang("No")], 
     3002                'overlay_opacity' : 0.5, 
     3003                'onClose':  function(caption) { 
     3004                        if(caption == get_lang("Yes")){ 
     3005                                cExecute ("$this.imap_functions.empty_folder&clean_folder="+"imapDefaultTrashFolder", handler_empty_trash); 
     3006                        } 
     3007                } 
    30303008        }); 
    3031          
    3032         $(_div).dialog('open'); 
    3033  
    30343009} 
    30353010 
     
    30543029        } 
    30553030         
    3056         var _div = document.createElement("div"); 
    3057         _div.innerHTML = '<p style="margin:10px 5px 5px 5px;">' + 
    3058                                                         '<span class="ui-icon ui-icon-alert" style="float:left; margin:0 7px 20px 0;"></span>'+ 
    3059                                                         get_lang('Do you really want to empty your spam folder?') + 
    3060                                                         '</p>'; 
    3061         $(_div).dialog( 
    3062         { 
    3063                 resizable: false, 
    3064                 title: get_lang('Empty Spam'), 
    3065                 position: 'center', 
    3066                 width: 350, 
    3067                 height:140, 
    3068                 modal: true, 
    3069                 buttons: [ 
    3070                                         { 
    3071                                                 text: get_lang("Yes"), 
    3072                                                 click: function() 
    3073                                                 { 
    3074                                                  cExecute ("$this.imap_functions.empty_folder&clean_folder="+"imapDefaultSpamFolder", handler_empty_spam); 
    3075                                                  $( this ).dialog( "close" ); 
    3076                                                 }, 
    3077                                                 style: "margin-top: -2.1em"  
    3078                                         }, 
    3079                                         { 
    3080                                                 text: get_lang("No"), 
    3081                                                 click: function() 
    3082                                                 { 
    3083                                                         $( this ).dialog( "close" );                                                     
    3084                                                 }, 
    3085                                                 style: "margin-top: -2.1em"  
    3086                                         }, 
    3087                                 ] 
     3031        $.Zebra_Dialog(get_lang('Do you really want to empty your spam folder?'), { 
     3032                'type':     'question', 
     3033                'title':    get_lang('Empty Spam'), 
     3034                'buttons':  [get_lang("Yes"), get_lang("No")], 
     3035                'overlay_opacity' : 0.5, 
     3036                'onClose':  function(caption) { 
     3037                        if(caption == get_lang("Yes")){ 
     3038                                cExecute ("$this.imap_functions.empty_folder&clean_folder="+"imapDefaultSpamFolder", handler_empty_spam); 
     3039                        } 
     3040                } 
    30883041        }); 
    3089          
    3090         $(_div).dialog('open'); 
    30913042} 
    30923043 
Note: See TracChangeset for help on using the changeset viewer.