Changeset 5393


Ignore:
Timestamp:
01/18/12 09:45:09 (12 years ago)
Author:
gustavo
Message:

Ticket #2434 - Adicionada validações na tela de importar para a nova agenda

File:
1 edited

Legend:

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

    r5389 r5393  
    33643364                write_msg(get_lang(data)); 
    33653365    }    
    3366         if(new_agenda == 'false'){ 
    3367                 if(confirm(get_lang("Do you confirm this import to your Calendar?"))){ 
    3368                         cExecute( import_url +'&from_ajax=true',handler_import_calendar); 
    3369                 } 
    3370         }else{                   
     3366        if(new_agenda == "True" && $("#expressoCalendarid")[0]){ 
    33713367                $( "#import-dialog" ).dialog({ 
    33723368                        autoOpen: false, 
     
    34073403                }); 
    34083404                $.ajax({ 
    3409                                 url: '../prototype/modules/calendar/index.php', 
    3410                                 async: false, 
    3411                                 success: function(){ 
    3412                                         $.ajax({ 
     3405                        url: '../prototype/modules/calendar/index.php', 
     3406                        async: false, 
     3407                        success: function(){ 
     3408                                $.ajax({ 
    34133409                                        url: "controller.php?action="+import_url+'&from_ajax=true&selected='+$("#select-agenda option:selected").val()+'&readable=true', 
    34143410                                        async: false, 
     
    34473443                                                        }); 
    34483444                                                } 
    3449                                         }}); 
    3450                                 }}); 
    3451                 } 
    3452                 $( "#import-dialog" ).dialog( "open" ); 
     3445                                        } 
     3446                                }); 
     3447                        } 
     3448                }); 
     3449        } 
     3450        else 
     3451        {                        
     3452                if(confirm(get_lang("Do you confirm this import to your Calendar?"))){ 
     3453                        cExecute( import_url +'&from_ajax=true',handler_import_calendar); 
     3454                } 
     3455        } 
     3456        $( "#import-dialog" ).dialog( "open" ); 
    34533457} 
    34543458function open_msg_part(data){ 
Note: See TracChangeset for help on using the changeset viewer.