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:
Andrew Ozz
2011-06-13 00:24:47 +00:00
parent 8e9b972098
commit 3ff031ae87
4 changed files with 20 additions and 18 deletions

View File

@@ -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');
}
});
},