Attempt to fix jQuery UI unselectable form fields in widgets, label can be either explicit or implicit, not both.

git-svn-id: https://develop.svn.wordpress.org/trunk@11431 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz
2009-05-22 16:13:05 +00:00
parent 783f4ea189
commit f0453f5e36
5 changed files with 72 additions and 95 deletions
+9 -3
View File
@@ -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) {