mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-03-01 06:40:54 -05:00
Update app/assets/javascripts/templateFolderForm.js
Use native `Array.indexOf` instead. Co-Authored-By: tombye <tombaromba@gmail.com>
This commit is contained in:
@@ -147,7 +147,7 @@
|
||||
);
|
||||
|
||||
// use dialog mode for states which contain more than one form control
|
||||
if ($.inArray(this.currentState, ['move-to-existing-folder', 'add-new-template']) !== -1) {
|
||||
if (['move-to-existing-folder', 'add-new-template'].indexOf(this.currentState) !== -1) {
|
||||
mode = 'dialog';
|
||||
}
|
||||
GOVUK.stickAtBottomWhenScrolling.setMode(mode);
|
||||
|
||||
Reference in New Issue
Block a user