mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-10-06 15:47:05 +00:00
Replace flagrant instances of .html('') with .empty().
Props OriginalEXE, SergeyBiryukov. Fixes #27034. git-svn-id: https://develop.svn.wordpress.org/trunk@31690 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -351,7 +351,7 @@ commentReply = {
|
||||
$('#com-reply').append( replyrow );
|
||||
$('#replycontent').css('height', '').val('');
|
||||
$('#edithead input').val('');
|
||||
$('.error', replyrow).html('').hide();
|
||||
$('.error', replyrow).empty().hide();
|
||||
$('.spinner', replyrow).hide();
|
||||
|
||||
this.cid = '';
|
||||
|
||||
@@ -286,7 +286,7 @@ inlineEditPost = {
|
||||
|
||||
if ( 'bulk-edit' === id ) {
|
||||
$('table.widefat #bulk-edit').removeClass('inline-editor').hide().siblings('tr.hidden').remove();
|
||||
$('#bulk-titles').html('');
|
||||
$('#bulk-titles').empty();
|
||||
$('#inlineedit').append( $('#bulk-edit') );
|
||||
} else {
|
||||
$('#'+id).siblings('tr.hidden').addBack().remove();
|
||||
|
||||
@@ -32,7 +32,7 @@ var findPosts;
|
||||
},
|
||||
|
||||
close: function() {
|
||||
$('#find-posts-response').html('');
|
||||
$('#find-posts-response').empty();
|
||||
$('#find-posts').hide();
|
||||
$( '.ui-find-overlay' ).hide();
|
||||
},
|
||||
|
||||
@@ -900,7 +900,7 @@ themes.view.Themes = wp.Backbone.View.extend({
|
||||
// and keeping theme count in sync
|
||||
render: function() {
|
||||
// Clear the DOM, please
|
||||
this.$el.html( '' );
|
||||
this.$el.empty();
|
||||
|
||||
// If the user doesn't have switch capabilities
|
||||
// or there is only one theme in the collection
|
||||
|
||||
@@ -233,7 +233,7 @@ wpWidgets = {
|
||||
},
|
||||
drop: function(e,ui) {
|
||||
ui.draggable.addClass('deleting');
|
||||
$('#removing-widget').hide().children('span').html('');
|
||||
$('#removing-widget').hide().children('span').empty();
|
||||
},
|
||||
over: function(e,ui) {
|
||||
ui.draggable.addClass('deleting');
|
||||
@@ -247,7 +247,7 @@ wpWidgets = {
|
||||
out: function(e,ui) {
|
||||
ui.draggable.removeClass('deleting');
|
||||
$('div.widget-placeholder').show();
|
||||
$('#removing-widget').hide().children('span').html('');
|
||||
$('#removing-widget').hide().children('span').empty();
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user