List tables: When executing a search, reset the Bulk Actions dropdown to avoid the search from failing.

props c3mdigital, vinod-dalvi.
fixes #25034.


git-svn-id: https://develop.svn.wordpress.org/trunk@25677 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2013-10-03 01:08:13 +00:00
parent 635a1249f5
commit 7a9a26fb84
2 changed files with 4 additions and 5 deletions

View File

@ -410,6 +410,10 @@ $(document).ready( function() {
});
}
$('.search-box input[type="search"], .search-box input[type="submit"]').mousedown(function () {
$('select[name^="action"]').val('-1');
});
// Scroll into view when focused
$('#contextual-help-link, #show-settings-link').on( 'focus.scroll-into-view', function(e){
if ( e.target.scrollIntoView )

View File

@ -64,11 +64,6 @@ inlineEditPost = {
t.revert();
}
});
$('#post-query-submit').mousedown(function(e){
t.revert();
$('select[name^="action"]').val('-1');
});
},
toggle : function(el){