Merge "mw.feedback: Make the title required"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Mon, 18 Jan 2016 18:45:12 +0000 (18:45 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Mon, 18 Jan 2016 18:45:12 +0000 (18:45 +0000)
resources/src/mediawiki/mediawiki.feedback.js

index 7afb9d3..97a94b8 100644 (file)
                        classes: [ 'mw-feedbackDialog-welcome-message' ]
                } );
                this.feedbackSubjectInput = new OO.ui.TextInputWidget( {
+                       indicator: 'required',
                        multiline: false
                } );
                this.feedbackMessageInput = new OO.ui.TextInputWidget( {
                                        !this.useragentMandatory ||
                                        this.useragentCheckbox.isSelected()
                                ) &&
-                               (
-                                       !!this.feedbackMessageInput.getValue() ||
-                                       !!this.feedbackSubjectInput.getValue()
-                               )
+                               this.feedbackSubjectInput.getValue()
                        );
 
                this.actions.setAbilities( { submit:  isValid } );