WordPress.org

Make WordPress Core

Changeset 25677


Ignore:
Timestamp:
10/03/2013 01:08:13 AM (6 years ago)
Author:
nacin
Message:

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

props c3mdigital, vinod-dalvi.
fixes #25034.

Location:
trunk/src/wp-admin/js
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/js/common.js

    r25595 r25677  
    411411    }
    412412
     413    $('.search-box input[type="search"], .search-box input[type="submit"]').mousedown(function () {
     414        $('select[name^="action"]').val('-1');
     415    });
     416
    413417    // Scroll into view when focused
    414418    $('#contextual-help-link, #show-settings-link').on( 'focus.scroll-into-view', function(e){
  • trunk/src/wp-admin/js/inline-edit-post.js

    r25667 r25677  
    6464                t.revert();
    6565            }
    66         });
    67 
    68         $('#post-query-submit').mousedown(function(e){
    69             t.revert();
    70             $('select[name^="action"]').val('-1');
    7166        });
    7267    },
Note: See TracChangeset for help on using the changeset viewer.