Changeset 6931 for branches/2.4


Ignore:
Timestamp:
08/03/12 15:57:28 (12 years ago)
Author:
eduardow
Message:

Ticket #2987 - Inconsistencia excluindo com tela modal aberta - teclas de atalho.

Location:
branches/2.4/expressoMail1_2/js
Files:
12 edited

Legend:

Unmodified
Added
Removed
  • branches/2.4/expressoMail1_2/js/QuickCatalogSearch.js

    r6754 r6931  
    800800                                                                        $( "#amount-text" ).focus(); 
    801801                                                                        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                        }  
    803808                        }); 
    804809                }); 
     
    814819                $(this).bind('keydown'); 
    815820                $(function() { 
    816         $( "#dialog:ui-dialog" ).dialog( "destroy" );                     
     821        $( "#dialog:ui-dialog" ).dialog("close").dialog( "destroy" );                     
    817822        $( "#dialog-modal" ).dialog({ 
    818823                        resizable: false, 
     
    832837                                        content.find(field_).focus();     
    833838                                }  
     839                        if(typeof(shortcut) != 'undefined') shortcut.disabled = false;   
    834840                        }, 
    835841                        open: function () { 
     
    837843                                $("#selectable li:first").focus(); 
    838844                                document.getElementById("amount-text").focus();  
     845                                if(typeof(shortcut) != 'undefined') shortcut.disabled = true; 
    839846                        }, 
    840847                        focus: function (event, ui) { 
  • branches/2.4/expressoMail1_2/js/QuickSearchUser.js

    r6754 r6931  
    3131                                                        } 
    3232                        ], 
    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            }  
    3742                });      
    3843                 
  • branches/2.4/expressoMail1_2/js/TreeS.js

    r5744 r6931  
    3232                                                                click: function() 
    3333                                                                { 
    34                                                                         $(this).dialog("destroy"); 
     34                                                                        $(this).dialog("close").dialog("destroy"); 
    3535                                                                        div.removeChild( div.firstChild ); 
    3636                                                                }, 
     
    4040                        beforeClose     : function() 
    4141                        {  
     42                                if(typeof(shortcut) != 'undefined') shortcut.disabled = false; 
    4243                                $(this).dialog("destroy"); 
    4344                                div.removeChild( div.firstChild ); 
     
    5455                                else 
    5556                                { 
    56                                         if( Element('dftree_treeFolders') != null ) 
     57                                if( Element('dftree_treeFolders') != null ) 
    5758                                        { 
    5859                                                $(div).dialog("destroy"); 
     
    6566                                        } 
    6667                                } 
     68                                if(typeof(shortcut) != 'undefined') shortcut.disabled = true; 
    6769                        } 
    6870                }); 
  • branches/2.4/expressoMail1_2/js/ccQuickAdd.js

    r6929 r6931  
    8989                                        } 
    9090                                } 
    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    }  
    92100                }); 
    93101                quickContact.next().css("background-color", "#E0EEEE").find("button").addClass("button").addClass("small"); 
  • branches/2.4/expressoMail1_2/js/common_functions.js

    r6754 r6931  
    687687                        select_all_search_messages(false, 'content_id_'+currentTab); 
    688688                        event.stopPropagation(); 
     689                if(typeof(shortcut) != 'undefined') shortcut.disabled = false;  
    689690                }, 
     691                open: function(event, ui)   
     692            {  
     693                if(typeof(shortcut) != 'undefined') shortcut.disabled = true;   
     694            },  
    690695                autoOpen:false, 
    691696                dialogClass: 'dialog-configure-label' 
     
    740745                        select_all_search_messages(false, 'content_id_'+currentTab); 
    741746                        event.stopPropagation(); 
     747        if(typeof(shortcut) != 'undefined') shortcut.disabled = false;  
    742748                }, 
     749        open: function(event, ui)   
     750        {  
     751            if(typeof(shortcut) != 'undefined') shortcut.disabled = true;   
     752        },  
    743753                autoOpen:false 
    744754        });      
  • branches/2.4/expressoMail1_2/js/draw_api.js

    r6864 r6931  
    44694469                        modal: true, 
    44704470                        closeOnEscape:true, 
    4471                         close:function(event, ui) {event.stopPropagation();}, 
     4471                        close:function(event, ui)   
     4472            {  
     4473                event.stopPropagation();  
     4474                 if(typeof(shortcut) != 'undefined') shortcut.disabled = false;  
     4475            },  
     4476            open: function(event, ui)   
     4477            {  
     4478                if(typeof(shortcut) != 'undefined') shortcut.disabled = true;   
     4479            },  
    44724480                        autoOpen:false 
    44734481                }); 
  • branches/2.4/expressoMail1_2/js/filter.js

    r5526 r6931  
    474474                                                                style: "margin-top: -2.1em"  
    475475                                                        }, 
    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        }  
    477485                        }); 
    478486                };  
  • branches/2.4/expressoMail1_2/js/main.js

    r6867 r6931  
    36523652                                                                click   : function() 
    36533653                                                                { 
    3654                                                                         importEmails.dialog("destroy"); 
     3654                                                                        importEmails.dialog("close").dialog("destroy"); 
    36553655                                                                } 
    36563656                                                         }, 
     
    37023702                                                                } 
    37033703                                                         } 
    3704                                                 ] 
     3704                                                ],  
     3705            open: function(event, ui)   
     3706            {  
     3707                if(typeof(shortcut) != 'undefined') shortcut.disabled = true;   
     3708            },  
     3709            close: function(event, ui)   
     3710            {  
     3711                if(typeof(shortcut) != 'undefined') shortcut.disabled = false;   
     3712            }  
    37053713                }); 
    37063714 
     
    39153923                        modal: true, 
    39163924                        resizable : false, 
    3917                         close: function(event) { 
    3918                                 event.stopPropagation(); 
    3919                         }, 
     3925                        open: function(event, ui)   
     3926            {  
     3927                if(typeof(shortcut) != 'undefined') shortcut.disabled = true;   
     3928            },  
     3929            close: function(event, ui)   
     3930            {  
     3931                event.stopPropagation();  
     3932                if(typeof(shortcut) != 'undefined') shortcut.disabled = false;   
     3933            }, 
    39203934                        closeOnEscape: true 
    39213935                }); 
     
    40354049                                                                                $( this ).dialog( "close" ); 
    40364050                                                                        } 
    4037                                                                 } 
     4051                                                                },  
     4052                                                    close:function(event, ui)   
     4053                                                    {  
     4054                                                        if(typeof(shortcut) != 'undefined') shortcut.disabled = false;   
     4055                                                    },  
     4056                                                    open: function(event, ui)   
     4057                                                    {  
     4058                                                        if(typeof(shortcut) != 'undefined') shortcut.disabled = true;   
     4059                                                    }  
    40384060                                                        }); 
    40394061                                                        $(".ui-dialog-buttonpane").find(".ui-button:last").children().html("Atualizar"); 
  • branches/2.4/expressoMail1_2/js/search.js

    r6754 r6931  
    107107                                        //$(this).dialog("destroy"); 
    108108                                        $('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            }  
    110118                        }); 
    111119                         
     
    15991607        if( this.divElement != null ) 
    16001608                { 
    1601                         $(this.divElement.parentNode).dialog("destroy"); 
     1609                        $(this.divElement.parentNode).dialog("close").dialog("destroy");  
    16021610                        this.modal.dialog("close"); 
    16031611                        this.divElement.parentNode.removeChild(this.divElement); 
  • branches/2.4/expressoMail1_2/js/sharemailbox.js

    r6884 r6931  
    206206                                beforeClose     : function() 
    207207                                {  
    208                                         $(this).dialog("destroy"); 
    209208                                        div.removeChild(div.firstChild); 
    210                                 } 
     209                                },  
     210        close:function(event, ui)   
     211        {  
     212            if(typeof(shortcut) != 'undefined') shortcut.disabled = false;   
     213            $(this).dialog("destroy");  
     214        },  
     215        open: function(event, ui)   
     216        {  
     217            if(typeof(shortcut) != 'undefined') shortcut.disabled = true;   
     218        }  
    211219                }); 
    212220 
  • branches/2.4/expressoMail1_2/js/shortcut.js

    r6754 r6931  
    77shortcut = { 
    88        'all_shortcuts':{},//All the shortcuts are stored in this array 
     9        'disabled': false, 
    910        'add': function(shortcut_combination,callback,opt) { 
    1011                //Provide a set of default options 
     
    4142                        } 
    4243         
     44                if(shortcut.disabled === true)  
     45                return;  
    4346                        //Find Which key is pressed 
    4447                        if (e.keyCode) code = e.keyCode; 
  • branches/2.4/expressoMail1_2/js/wfolders.js

    r5874 r6931  
    4848                                                                                        click   : function() 
    4949                                                                                        { 
    50                                                                                                 winSaveFile.dialog("destroy"); 
     50                                                                                                winSaveFile.dialog("close"),dialog("destroy"); 
    5151                                                                                        } 
    5252                                                                                 }, 
     
    8181                                                                                                } 
    8282 
    83                                                                                                 winSaveFile.dialog("destroy"); 
     83                                                                                                winSaveFile.dialog("close").dialog("destroy");  
    8484                                                                                        } 
    8585                                                                                 } 
    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                    }                            
    8795                                        });      
    8896                         
Note: See TracChangeset for help on using the changeset viewer.