Ticket #16972: 16972.3.diff
| File 16972.3.diff, 1.1 KB (added by lessbloat, 7 months ago) |
|---|
-
wp-admin/js/postbox.js
10 10 $('.postbox h3, .postbox .handlediv').bind('click.postboxes', function() { 11 11 var p = $(this).parent('.postbox'), id = p.attr('id'); 12 12 13 if ( 'dashboard_browser_nag' == id )13 if ( 'dashboard_browser_nag' == id || $(this).parent().hasClass('was-sorted') ) 14 14 return; 15 15 16 16 p.toggleClass('closed'); … … 77 77 distance: 2, 78 78 tolerance: 'pointer', 79 79 forcePlaceholderSize: true, 80 helper: 'clone',81 80 opacity: 0.65, 81 start: function (e,ui) { 82 $(ui.item[0]).addClass('was-sorted'); 83 }, 82 84 stop: function(e,ui) { 83 85 if ( $(this).find('#dashboard_browser_nag').is(':visible') && 'dashboard_browser_nag' != this.firstChild.id ) { 84 86 $(this).sortable('cancel'); 85 87 return; 86 88 } 89 90 setTimeout(function () { 91 $(ui.item[0]).removeClass('was-sorted'); 92 }, 50); 87 93 88 94 postboxes.save_order(page); 89 95 },
