mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-05-02 07:00:51 -04:00
$.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
|
||||
if ($.inArray(this.currentState, ['move-to-existing-folder', 'add-new-template'])) {
|
||||
if ($.inArray(this.currentState, ['move-to-existing-folder', 'add-new-template']) !== -1) {
|
||||
mode = 'dialog';
|
||||
}
|
||||
GOVUK.stickAtBottomWhenScrolling.setMode(mode);
|
||||
|
||||
Reference in New Issue
Block a user