WordPress/wp-admin/js/list-table.min.js

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);