Merge "mw.special.preferences.confirmClose: Handle textareas"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Tue, 17 Apr 2018 15:50:38 +0000 (15:50 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Tue, 17 Apr 2018 15:50:38 +0000 (15:50 +0000)
resources/src/mediawiki.special/mediawiki.special.preferences.confirmClose.js

index 1b8d6d9..1476241 100644 (file)
@@ -26,7 +26,8 @@
                                                        return true;
                                                }
                                        }
-                               } else if ( $input.is( 'input' ) ) { // <input> has defaultValue or defaultChecked
+                               } else if ( $input.is( 'input' ) || $input.is( 'textarea' ) ) {
+                                       // <input> has defaultValue or defaultChecked
                                        inputType = input.type;
                                        if ( inputType === 'radio' || inputType === 'checkbox' ) {
                                                if ( input.checked !== input.defaultChecked ) {