mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
Make sure the browser nag in shown first on the dashboard no matter what! See #17323
git-svn-id: https://develop.svn.wordpress.org/trunk@18295 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -100,24 +100,18 @@ var postboxes;
|
||||
forcePlaceholderSize: true,
|
||||
helper: 'clone',
|
||||
opacity: 0.65,
|
||||
start: function(e,ui) {
|
||||
$('body').css({
|
||||
WebkitUserSelect: 'none',
|
||||
KhtmlUserSelect: 'none'
|
||||
});
|
||||
/*
|
||||
if ( $.browser.msie )
|
||||
return;
|
||||
ui.item.addClass('noclick');
|
||||
*/
|
||||
},
|
||||
stop: function(e,ui) {
|
||||
if ( $(this).find('#dashboard_browser_nag').is(':visible') && 'dashboard_browser_nag' != this.firstChild.id ) {
|
||||
$(this).sortable('cancel');
|
||||
return;
|
||||
}
|
||||
|
||||
postboxes.save_order(page);
|
||||
ui.item.parent().removeClass('temp-border');
|
||||
$('body').css({
|
||||
WebkitUserSelect: '',
|
||||
KhtmlUserSelect: ''
|
||||
});
|
||||
},
|
||||
receive: function(e,ui) {
|
||||
if ( 'dashboard_browser_nag' == ui.item[0].id )
|
||||
$(ui.sender).sortable('cancel');
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user