From 9c7038dcc22c9c1e477c2b4b99bc665b39a46528 Mon Sep 17 00:00:00 2001 From: Dat Hoang Date: Fri, 11 Jun 2021 16:11:03 +0700 Subject: [PATCH] Remove redundant jQuery selector #the-list a.editinline --- modules/custom-status/lib/custom-status.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/modules/custom-status/lib/custom-status.js b/modules/custom-status/lib/custom-status.js index e5600992..f9747eb4 100644 --- a/modules/custom-status/lib/custom-status.js +++ b/modules/custom-status/lib/custom-status.js @@ -81,10 +81,6 @@ jQuery(document).ready(function() { } else if ( jQuery('select[name="_status"]').length > 0 ) { ef_append_to_dropdown('select[name="_status"]'); - // Refresh the custom status dropdowns everytime Quick Edit is loaded - jQuery('#the-list a.editinline').on( 'click', function() { - ef_append_to_dropdown('#the-list select[name="_status"]'); - } ); // Clean up the bulk edit selector because it's non-standard jQuery( '#bulk-edit' ).find( 'select[name="_status"]' ).prepend( '' ); jQuery( '#bulk-edit' ).find( 'select[name="_status"] option' ).prop( 'selected', false );