mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-16 15:46:04 +01:00
25f206e01f
Props wonderboymusic, pareshradadiya. Fixes #31634. Built from https://develop.svn.wordpress.org/trunk@34467 git-svn-id: http://core.svn.wordpress.org/trunk@34431 1a063a9b-81f0-0310-95a4-ce76da25c4cd
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); |