$.inArray returns the same value as Array.indexOf

This commit is contained in:
Tom Byers
2019-02-04 14:56:18 +00:00
parent 2055a83516
commit 0e55521d8f

View File

@@ -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);