mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 17:48:01 +01:00
1 line
563 B
JavaScript
1 line
563 B
JavaScript
|
!function(a){"use strict";function b(){return d.find('table .check-column input[type="checkbox"]:checked')}function c(a){var c=b().length;"SELECT"===a.target.tagName&&e.val(a.target.value),e.prop("disabled",!c),f.prop("disabled",!c||-1===parseInt(e.val(),10))}var d,e,f;a(document).ready(function(){d=a(".wp-list-table").closest("form"),d.length&&(e=d.find('select[name="action"], select[name="action2"]').on("change",c).prop("disabled",!0),f=d.find("#doaction, #doaction2").prop("disabled",!0),d.find("table").on("click",".check-column :checkbox",c))})}(jQuery);
|