Changeset 6910 for trunk/expressoMail1_2
- Timestamp:
- 07/30/12 16:17:19 (12 years ago)
- Location:
- trunk/expressoMail1_2/js
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoMail1_2/js/QuickCatalogSearch.js
r6567 r6910 800 800 $( "#amount-text" ).focus(); 801 801 event.stopPropagation(); 802 } 802 if(typeof(shortcut) != 'undefined') shortcut.disabled = false; 803 }, 804 open: function(event, ui) 805 { 806 if(typeof(shortcut) != 'undefined') shortcut.disabled = true; 807 } 803 808 }); 804 809 }); … … 814 819 $(this).bind('keydown'); 815 820 $(function() { 816 $( "#dialog:ui-dialog" ).dialog( "destroy" );821 $( "#dialog:ui-dialog" ).dialog("close").dialog( "destroy" ); 817 822 $( "#dialog-modal" ).dialog({ 818 823 resizable: false, … … 832 837 content.find(field_).focus(); 833 838 } 839 if(typeof(shortcut) != 'undefined') shortcut.disabled = false; 834 840 }, 835 841 open: function () { … … 837 843 $("#selectable li:first").focus(); 838 844 document.getElementById("amount-text").focus(); 845 if(typeof(shortcut) != 'undefined') shortcut.disabled = true; 839 846 }, 840 847 focus: function (event, ui) { -
trunk/expressoMail1_2/js/QuickSearchUser.js
r6528 r6910 31 31 } 32 32 ], 33 beforeClose : function() 34 { 35 $(this).dialog("destroy"); 36 } 33 open: function(event, ui) 34 { 35 if(typeof(shortcut) != 'undefined') shortcut.disabled = true; 36 }, 37 close: function(event, ui) 38 { 39 if(typeof(shortcut) != 'undefined') shortcut.disabled = false; 40 $(this).dialog("destroy"); 41 } 37 42 }); 38 43 -
trunk/expressoMail1_2/js/TreeS.js
r5744 r6910 32 32 click: function() 33 33 { 34 $(this).dialog(" destroy");34 $(this).dialog("close").dialog("destroy"); 35 35 div.removeChild( div.firstChild ); 36 36 }, … … 40 40 beforeClose : function() 41 41 { 42 if(typeof(shortcut) != 'undefined') shortcut.disabled = false; 42 43 $(this).dialog("destroy"); 43 44 div.removeChild( div.firstChild ); … … 65 66 } 66 67 } 68 if(typeof(shortcut) != 'undefined') shortcut.disabled = true; 67 69 } 68 70 }); -
trunk/expressoMail1_2/js/ccQuickAdd.js
r6908 r6910 89 89 } 90 90 } 91 ] 91 ], 92 open: function(event, ui) 93 { 94 if(typeof(shortcut) != 'undefined') shortcut.disabled = true; 95 }, 96 close: function(event, ui) 97 { 98 if(typeof(shortcut) != 'undefined') shortcut.disabled = false; 99 } 92 100 }); 93 101 quickContact.next().css("background-color", "#E0EEEE").find("button").addClass("button").addClass("small"); -
trunk/expressoMail1_2/js/common_functions.js
r6860 r6910 687 687 select_all_search_messages(false, 'content_id_'+currentTab); 688 688 event.stopPropagation(); 689 if(typeof(shortcut) != 'undefined') shortcut.disabled = false; 689 690 }, 691 open: function(event, ui) 692 { 693 if(typeof(shortcut) != 'undefined') shortcut.disabled = true; 694 }, 690 695 autoOpen:false, 691 696 dialogClass: 'dialog-configure-label' … … 740 745 select_all_search_messages(false, 'content_id_'+currentTab); 741 746 event.stopPropagation(); 747 if(typeof(shortcut) != 'undefined') shortcut.disabled = false; 742 748 }, 749 open: function(event, ui) 750 { 751 if(typeof(shortcut) != 'undefined') shortcut.disabled = true; 752 }, 743 753 autoOpen:false 744 754 }); -
trunk/expressoMail1_2/js/draw_api.js
r6882 r6910 4488 4488 modal: true, 4489 4489 closeOnEscape:true, 4490 close:function(event, ui) {event.stopPropagation();}, 4490 close:function(event, ui) 4491 { 4492 event.stopPropagation(); 4493 if(typeof(shortcut) != 'undefined') shortcut.disabled = false; 4494 }, 4495 open: function(event, ui) 4496 { 4497 if(typeof(shortcut) != 'undefined') shortcut.disabled = true; 4498 }, 4491 4499 autoOpen:false 4492 4500 }); -
trunk/expressoMail1_2/js/filter.js
r5526 r6910 474 474 style: "margin-top: -2.1em" 475 475 }, 476 ] 476 ], 477 open: function(event, ui) 478 { 479 if(typeof(shortcut) != 'undefined') shortcut.disabled = true; 480 }, 481 close: function(event, ui) 482 { 483 if(typeof(shortcut) != 'undefined') shortcut.disabled = false; 484 } 477 485 }); 478 486 }; -
trunk/expressoMail1_2/js/main.js
r6882 r6910 3682 3682 click : function() 3683 3683 { 3684 importEmails.dialog(" destroy");3684 importEmails.dialog("close").dialog("destroy"); 3685 3685 } 3686 3686 }, … … 3732 3732 } 3733 3733 } 3734 ] 3734 ], 3735 open: function(event, ui) 3736 { 3737 if(typeof(shortcut) != 'undefined') shortcut.disabled = true; 3738 }, 3739 close: function(event, ui) 3740 { 3741 if(typeof(shortcut) != 'undefined') shortcut.disabled = false; 3742 } 3735 3743 }); 3736 3744 … … 3941 3949 modal: true, 3942 3950 resizable : false, 3943 close: function(event) { 3944 event.stopPropagation(); 3945 }, 3951 open: function(event, ui) 3952 { 3953 if(typeof(shortcut) != 'undefined') shortcut.disabled = true; 3954 }, 3955 close: function(event, ui) 3956 { 3957 event.stopPropagation(); 3958 if(typeof(shortcut) != 'undefined') shortcut.disabled = false; 3959 }, 3946 3960 closeOnEscape: true 3947 3961 }); … … 4061 4075 $( this ).dialog( "close" ); 4062 4076 } 4063 } 4077 }, 4078 close:function(event, ui) 4079 { 4080 if(typeof(shortcut) != 'undefined') shortcut.disabled = false; 4081 }, 4082 open: function(event, ui) 4083 { 4084 if(typeof(shortcut) != 'undefined') shortcut.disabled = true; 4085 } 4064 4086 }); 4065 4087 $(".ui-dialog-buttonpane").find(".ui-button:last").children().html("Atualizar"); -
trunk/expressoMail1_2/js/search.js
r6641 r6910 107 107 //$(this).dialog("destroy"); 108 108 $('fieldset', div).remove(); 109 } 109 }, 110 close:function(event, ui) 111 { 112 if(typeof(shortcut) != 'undefined') shortcut.disabled = false; 113 }, 114 open: function(event, ui) 115 { 116 if(typeof(shortcut) != 'undefined') shortcut.disabled = true; 117 } 110 118 }); 111 119 … … 1599 1607 if( this.divElement != null ) 1600 1608 { 1601 $(this.divElement.parentNode).dialog(" destroy");1609 $(this.divElement.parentNode).dialog("close").dialog("destroy"); 1602 1610 this.modal.dialog("close"); 1603 1611 this.divElement.parentNode.removeChild(this.divElement); -
trunk/expressoMail1_2/js/sharemailbox.js
r6877 r6910 207 207 beforeClose : function() 208 208 { 209 $(this).dialog("destroy");210 209 div.removeChild(div.firstChild); 211 } 210 }, 211 close:function(event, ui) 212 { 213 if(typeof(shortcut) != 'undefined') shortcut.disabled = false; 214 $(this).dialog("destroy"); 215 }, 216 open: function(event, ui) 217 { 218 if(typeof(shortcut) != 'undefined') shortcut.disabled = true; 219 } 212 220 }); 213 221 -
trunk/expressoMail1_2/js/shortcut.js
r6707 r6910 7 7 shortcut = { 8 8 'all_shortcuts':{},//All the shortcuts are stored in this array 9 'disabled': false, 9 10 'add': function(shortcut_combination,callback,opt) { 10 11 //Provide a set of default options … … 37 38 else if(e.srcElement) element=e.srcElement; 38 39 if(element.nodeType==3) element=element.parentNode; 39 40 40 41 if(element.tagName == 'INPUT' || element.tagName == 'TEXTAREA') return; 41 42 } 42 43 44 if(shortcut.disabled === true) 45 return; 46 47 43 48 //Find Which key is pressed 44 49 if (e.keyCode) code = e.keyCode; -
trunk/expressoMail1_2/js/wfolders.js
r5874 r6910 48 48 click : function() 49 49 { 50 winSaveFile.dialog(" destroy");50 winSaveFile.dialog("close"),dialog("destroy"); 51 51 } 52 52 }, … … 81 81 } 82 82 83 winSaveFile.dialog(" destroy");83 winSaveFile.dialog("close").dialog("destroy"); 84 84 } 85 85 } 86 ] 86 ], 87 close:function(event, ui) 88 { 89 if(typeof(shortcut) != 'undefined') shortcut.disabled = false; 90 }, 91 open: function(event, ui) 92 { 93 if(typeof(shortcut) != 'undefined') shortcut.disabled = true; 94 } 87 95 }); 88 96
Note: See TracChangeset
for help on using the changeset viewer.