From 6f2302419912db0c74bada20f5e3fff62bea56cb Mon Sep 17 00:00:00 2001 From: webchick Date: Tue, 6 Jan 2015 11:04:38 -0800 Subject: [PATCH] Issue #2397681 by alexpott: field_ui.js fails eslint validation --- core/modules/field_ui/field_ui.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/modules/field_ui/field_ui.js b/core/modules/field_ui/field_ui.js index 9d0e4b468ca..6394c3e8d4b 100644 --- a/core/modules/field_ui/field_ui.js +++ b/core/modules/field_ui/field_ui.js @@ -28,7 +28,7 @@ // When the user selects a new field type, clear the "existing field" // selection. $newFieldType.on('change', function () { - if ($(this).val() != '') { + if ($(this).val() !== '') { // Reset the "existing storage name" selection. $existingStorageName.val('').trigger('change'); } @@ -38,7 +38,7 @@ // type" selection and populate the 'existing_storage_label' element. $existingStorageName.on('change', function () { var value = $(this).val(); - if (value != '') { + if (value !== '') { // Reset the "new field type" selection. $newFieldType.val('').trigger('change');