Ticket #18556: 18556.diff

File 18556.diff, 1.7 KB (added by drecodeam, 15 months ago)

resolved issue by binding empty functions on 'start' method of jquery sortable function and then binding original functions on 'stop' method.

  • wp-admin/js/postbox.dev.js

     
    7272                                forcePlaceholderSize: true, 
    7373                                helper: 'clone', 
    7474                                opacity: 0.65, 
     75                                start:function(e,ui){ //unbinding the hoverIntent functions 
     76                                        $('#wpadminbar').find('li.menupop').hoverIntent({ 
     77                                            over:function(e){ 
     78                                                //do nothing 
     79                                                }, 
     80                                            out:function(){ 
     81                                                //do nothing 
     82                                                } 
     83                                            }); 
     84                                }, 
    7585                                stop: function(e,ui) { 
    7686                                        if ( $(this).find('#dashboard_browser_nag').is(':visible') && 'dashboard_browser_nag' != this.firstChild.id ) { 
    7787                                                $(this).sortable('cancel'); 
    7888                                                return; 
    7989                                        } 
    80  
     90                                    $('#wpadminbar').find('li.menupop').hoverIntent({ //Binding the hoverIntent functions back  
     91                                        over: function(e){ 
     92                                            $(this).addClass('hover'); 
     93                                         }, 
     94                                        out: function(e){ 
     95                                            $(this).removeClass('hover'); 
     96                                        }, 
     97                                        timeout: 180, 
     98                                        sensitivity: 7, 
     99                                        interval: 100 
     100                                    }); 
    81101                                        postboxes.save_order(page); 
    82102                                }, 
    83103                                receive: function(e,ui) {