Skip to content

Commit

Permalink
Merge pull request #733 from Automattic/remove/redundant-jquery-methods
Browse files Browse the repository at this point in the history
Remove redundant/unused JQuery methods
  • Loading branch information
ingeniumed authored Jun 27, 2024
2 parents ef539f3 + 7e1a6c7 commit d3aae9e
Show file tree
Hide file tree
Showing 9 changed files with 3 additions and 353 deletions.
328 changes: 0 additions & 328 deletions common/js/jquery.quicksearch.js

This file was deleted.

2 changes: 0 additions & 2 deletions edit_flow.php
Original file line number Diff line number Diff line change
Expand Up @@ -413,8 +413,6 @@ public function register_scripts_and_styles() {
'selected' => esc_html__( 'Selected', 'edit-flow' ),
)
);

wp_register_script( 'jquery-quicksearch', EDIT_FLOW_URL . 'common/js/jquery.quicksearch.js', array( 'jquery' ), EDIT_FLOW_VERSION, true );
}
}

Expand Down
4 changes: 0 additions & 4 deletions modules/custom-status/lib/custom-status-configure.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,6 @@
return inlineEditCustomStatus.save( this );
}
} );

$( '#posts-filter input[type="submit"]' ).on( 'mousedown', function ( e ) {
t.revert();
} );
},

toggle( el ) {
Expand Down
2 changes: 1 addition & 1 deletion modules/editorial-metadata/editorial-metadata.php
Original file line number Diff line number Diff line change
Expand Up @@ -1480,7 +1480,7 @@ public function print_configure_view() {
<?php if ( ! isset( $_GET['action'] ) || ( isset( $_GET['action'] ) && 'edit-term' != $_GET['action'] ) ) : ?>
<div id="col-right">
<div class="col-wrap">
<form id="posts-filter" action="" method="post">
<form id="" action="" method="post">
<?php $wp_list_table->display(); ?>
<?php wp_nonce_field( 'editorial-metadata-sortable', 'editorial-metadata-sortable' ); ?>
</form>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,6 @@
return inlineEditMetadataTerm.save( this );
}
} );

$( '#posts-filter input[type="submit"]' ).on( 'mousedown', function ( e ) {
t.revert();
} );
},

toggle( el ) {
Expand Down
3 changes: 1 addition & 2 deletions modules/notifications/notifications.php
Original file line number Diff line number Diff line change
Expand Up @@ -195,8 +195,7 @@ public function enqueue_admin_scripts() {

if ( $this->is_whitelisted_functional_view() ) {
wp_enqueue_script( 'jquery-listfilterizer' );
wp_enqueue_script( 'jquery-quicksearch' );
wp_enqueue_script( 'edit-flow-notifications-js', $this->module_url . 'lib/notifications.js', [ 'jquery', 'jquery-listfilterizer', 'jquery-quicksearch' ], EDIT_FLOW_VERSION, true );
wp_enqueue_script( 'edit-flow-notifications-js', $this->module_url . 'lib/notifications.js', [ 'jquery', 'jquery-listfilterizer' ], EDIT_FLOW_VERSION, true );
wp_localize_script(
'edit-flow-notifications-js',
'ef_notifications_localization',
Expand Down
4 changes: 0 additions & 4 deletions modules/user-groups/lib/user-groups-configure.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,6 @@
return inlineEditUsergroup.save( this );
}
} );

$( '#posts-filter input[type="submit"]' ).on( 'mousedown', function ( e ) {
t.revert();
} );
},

toggle( el ) {
Expand Down
Loading

0 comments on commit d3aae9e

Please sign in to comment.