Widgets: remove leftover debug bits and fix jshint warnings in widgets.js, see #25952.
Built from https://develop.svn.wordpress.org/trunk@26427 git-svn-id: http://core.svn.wordpress.org/trunk@26327 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
f46e743343
commit
29af7b55f3
|
@ -120,16 +120,7 @@ wpWidgets = {
|
|||
var $this = $(this),
|
||||
$wrap = $this.parent(),
|
||||
inside = ui.item.children('.widget-inside');
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
//console.log(this);console.log(ui);
|
||||
|
||||
|
||||
|
||||
|
||||
if ( inside.css('display') === 'block' ) {
|
||||
inside.hide();
|
||||
$(this).sortable('refreshPositions');
|
||||
|
@ -168,7 +159,7 @@ wpWidgets = {
|
|||
if ( 'multi' === addNew ) {
|
||||
$widget.html(
|
||||
$widget.html().replace( /<[^<>]+>/g, function( tag ) {
|
||||
return tag.replace( /__i__|%i%/g, widgetNumber );
|
||||
return tag.replace( /__i__|%i%/g, widgetNumber );
|
||||
})
|
||||
);
|
||||
|
||||
|
@ -209,7 +200,7 @@ wpWidgets = {
|
|||
}
|
||||
},
|
||||
|
||||
over: function( event, ui ) {
|
||||
over: function() {
|
||||
var $wrap = $(this).parent();
|
||||
|
||||
if ( $wrap.hasClass('closed') ) {
|
||||
|
@ -217,11 +208,11 @@ wpWidgets = {
|
|||
}
|
||||
},
|
||||
|
||||
out: function( event, ui ) {
|
||||
out: function() {
|
||||
$(this).parent().removeClass('widget-hover');
|
||||
},
|
||||
|
||||
deactivate: function( event, ui ) {
|
||||
deactivate: function() {
|
||||
// Remove all min-height added on "start"
|
||||
$(this).css( 'min-height', '' ).parent().css( 'min-height', '' );
|
||||
},
|
||||
|
@ -354,7 +345,7 @@ wpWidgets = {
|
|||
save : function( widget, del, animate, order ) {
|
||||
var sidebarId = widget.closest('div.widgets-sortables').attr('id'),
|
||||
data = widget.find('form').serialize(), a;
|
||||
|
||||
|
||||
widget = $(widget);
|
||||
$('.spinner', widget).show();
|
||||
|
||||
|
|
Loading…
Reference in New Issue