Changeset 5663
- Timestamp:
- 03/07/12 15:41:25 (11 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoMail1_2/js/main.js
r5637 r5663 67 67 if (preferences.delete_trash_messages_after_n_days != 0) 68 68 cExecute ("$this.imap_functions.automatic_trash_cleanness&before_date="+preferences.delete_trash_messages_after_n_days+"&cyrus_delimiter="+cyrus_delimiter, handler_automatic_trash_cleanness); 69 70 if(preferences.outoffice == "1")71 write_msg(get_lang("Attention, you are in out of office mode."), true);69 70 //if(preferences.outoffice == "1") 71 // 72 72 73 73 //Troca da forma de construção de menu para o plugin jquery.contextMenu -
trunk/prototype/modules/mail/js/foldertree.js
r5657 r5663 279 279 } 280 280 }else if( event.keyCode == 27){ 281 esc = true; 282 if(confirm(get_lang("Do you want to cancel the folder edition?"))) 283 draw_new_tree_folder(); 284 else{ 285 $(".new_folder").focus().val(name); 286 esc = false; 287 } 281 draw_new_tree_folder(); 288 282 } 289 283 }).focusout(function(){ 290 if(!esc){ 291 if(confirm(get_lang("Do you want to cancel the folder edition?"))) 292 draw_new_tree_folder(); 293 else{ 294 $(".new_folder").focus().val(name); 295 } 296 } 284 draw_new_tree_folder(); 297 285 }).val(name); 298 286 }) … … 302 290 303 291 var folder_id = $(this).parents(".closed:first").attr('id'); 304 var folder_name = $.trim($(this).parents(".closed:first").find(".folder").text().split("[")[0]);292 var folder_name = "<strong>"+$.trim($(this).parents(".closed:first").find(".folder").text().split("[")[0])+"</strong>"; 305 293 306 294 if(valid_tabs($(this).parents("li:first").find("li"), folder_id)) … … 316 304 return write_msg(get_lang("It's not possible delete this folder, because it is being used in the moment!")); 317 305 } 318 306 var folder_span = $(this); 319 307 var confirm_text = get_lang("Do you wish to exclude the folder "); 320 if(!confirm(confirm_text + folder_name)){ 308 $.Zebra_Dialog(confirm_text+folder_name, { 309 'type': 'question', 310 'title': 'Confirmação de Exclusão', 311 'buttons': [get_lang('Yes'), get_lang('No')], 312 'onClose': function(caption) { 313 if(caption == get_lang('Yes')){ 314 $.ajax({ 315 url : "controller.php?action=$this.imap_functions.delete_mailbox", 316 type: "POST", 317 data : "del_past="+folder_id, 318 success : function(data){ 319 data = connector.unserialize(data); 320 if(data == "Mailbox does not exist"){ 321 $(".folders_loading").removeClass("folders_loading"); 322 return write_msg(get_lang("Mailbox does not exist")); 323 } 324 write_msg(get_lang("The folder %1 was successfully removed", folder_name)); 325 cExecute("$this.imap_functions.get_folders_list&onload=true", update_menu); 326 } 327 }); 328 }else{ 329 folder_span.parents(".closed:first").find(".folder").removeClass("folders_loading"); 330 return; 331 } 332 } 333 }); 334 /* if(!confirm(confirm_text + folder_name)){ 321 335 $(this).parents(".closed:first").find(".folder").removeClass("folders_loading"); 322 336 return; 323 } 324 $.ajax({ 325 url : "controller.php?action=$this.imap_functions.delete_mailbox", 326 type: "POST", 327 data : "del_past="+folder_id, 328 success : function(data){ 329 data = connector.unserialize(data); 330 if(data == "Mailbox does not exist"){ 331 $(".folders_loading").removeClass("folders_loading"); 332 return write_msg(get_lang("Mailbox does not exist")); 333 } 334 write_msg(get_lang("The folder %1 was successfully removed", folder_name)); 335 cExecute("$this.imap_functions.get_folders_list&onload=true", update_menu); 336 } 337 }); 338 337 } */ 339 338 }) 340 339 //FUNÇÃO DO eventNU FLUTUANTE EXCLUIR < END 341 340 //FUNÇÃO DO eventNU FLUTUANTE NOVA PASTA < BEGIN 342 341 .end().find(".float-menu-new").click(function(){ 342 $(this).parents(".float-menu").addClass("hidden"); 343 343 var selected_li = $(this).parents(".closed:first"); 344 344 if(selected_li.find("ul:first").length){ … … 391 391 }); 392 392 }else if( event.keyCode == 27){ 393 esc = true; 394 if(confirm(get_lang("Do you want to cancel the folder creation?"))) 395 draw_new_tree_folder(); 396 else{ 397 $(this).focus(); 398 esc = false; 399 } 393 draw_new_tree_folder(); 400 394 } 401 395 }).focusout(function(){ 402 if(!esc){ 403 if(confirm(get_lang("Do you want to cancel the folder creation?"))) 404 draw_new_tree_folder(); 405 else{ 406 $(this).focus(); 407 } 408 } 396 draw_new_tree_folder(); 409 397 }); 410 398 }); -
trunk/prototype/modules/mail/templates/float_folder_menu.ejs
r5487 r5663 11 11 %> 12 12 13 <span class="float-menu hidden" style="position:absolute;text-align: left; z-index : 90000;">13 <span class="float-menu hidden" style="position:absolute;text-align: left;"> 14 14 <span class="ui-icon ui-icon-document float-menu-new" title="Nova Pasta" style="float: left; text-align: left;"></span> 15 15 <%if(!specialFolders[data.name_folder]){ %>
Note: See TracChangeset
for help on using the changeset viewer.