Attempt to fix jQuery UI unselectable form fields in widgets, label can be either explicit or implicit, not both.
git-svn-id: http://svn.automattic.com/wordpress/trunk@11431 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -16,7 +16,7 @@ wpWidgets = {
|
||||
c.sortable('enable').sortable('refresh');
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
$('#widgets-left div.sidebar-name').click(function(){
|
||||
if ( $(this).siblings('.widget-holder').is(':visible') ) {
|
||||
$(this).parent().addClass('closed');
|
||||
@@ -24,11 +24,11 @@ wpWidgets = {
|
||||
$(this).parent().removeClass('closed');
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
$('#widgets-right .widget, #wp_inactive_widgets .widget').each(function(){
|
||||
wpWidgets.appendTitle(this);
|
||||
});
|
||||
|
||||
|
||||
this.addEvents();
|
||||
$('.widget-error').parents('.widget').find('a.widget-action').click();
|
||||
|
||||
@@ -93,6 +93,12 @@ wpWidgets = {
|
||||
}
|
||||
}).not(':visible').sortable('disable');
|
||||
wpWidgets.resize();
|
||||
|
||||
$('.widget-inside label').each(function(){
|
||||
var f = $(this).attr('for');
|
||||
if ( f && f == $('input', this).attr('id') )
|
||||
$(this).removeAttr('for');
|
||||
});
|
||||
},
|
||||
|
||||
saveOrder : function(sb) {
|
||||
|
||||
Reference in New Issue
Block a user