3d494d02ea2296b394e5279229ef1b5db2972fde
5 var $inputs
= $( '#mw-specialmute-form input:checkbox' ),
6 saveButton
, $saveButton
= $( '#save' );
8 function isFormChanged() {
9 return $inputs
.is( function () {
10 return this.checked
!== this.defaultChecked
;
14 if ( $saveButton
.length
) {
15 saveButton
= OO
.ui
.infuse( $saveButton
);
16 saveButton
.setDisabled( !isFormChanged() );
18 $inputs
.on( 'change', function () {
19 saveButton
.setDisabled( !isFormChanged() );