Just use [type="checkbox"] for better performance.
Change-Id: I41e57873c4598ff3af6e70f913297c6b2d368f69
$( e.target ).find( 'input:not([type="hidden"],[type="submit"]), select' ).each( function () {
var value = '';
- if ( !$( this ).is( ':checkbox' ) || $( this ).is( ':checked' ) ) {
+ if ( !$( this ).is( '[type="checkbox"]' ) || $( this ).is( ':checked' ) ) {
value = $( this ).val();
}
'use strict';
$( function () {
- var $inputs = $( '#mw-specialmute-form input:checkbox' ),
+ var $inputs = $( '#mw-specialmute-form input[type="checkbox"]' ),
saveButton, $saveButton = $( '#save' );
function isFormChanged() {