mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-24 00:07:02 -04:00
Merge pull request #2726 from alphagov/fix-incorrect-use-of-inarray
$.inArray returns the same value as Array.indexOf
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'])) {
|
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