mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-23 07:46:23 -04: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
|
// 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';
|
mode = 'dialog';
|
||||||
}
|
}
|
||||||
GOVUK.stickAtBottomWhenScrolling.setMode(mode);
|
GOVUK.stickAtBottomWhenScrolling.setMode(mode);
|
||||||
|
|||||||
Reference in New Issue
Block a user