From 12d1760807d0be327c6d4e340ed692d3d8023912 Mon Sep 17 00:00:00 2001 From: Alex Pott Date: Wed, 22 May 2013 11:04:13 -0700 Subject: [PATCH] Issue #1684852 by nod_: JSHint locale. --- core/modules/locale/locale.admin.js | 1 - core/modules/locale/locale.bulk.js | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/core/modules/locale/locale.admin.js b/core/modules/locale/locale.admin.js index 206324601bd..a0fda5a0b2e 100644 --- a/core/modules/locale/locale.admin.js +++ b/core/modules/locale/locale.admin.js @@ -46,7 +46,6 @@ Drupal.behaviors.localeTranslateDirty = { Drupal.behaviors.hideUpdateInformation = { attach: function (context, settings) { var $table = $('#locale-translation-status-form').once('expand-updates'); - var effect = settings.hideUpdates; if ($table.length) { var $tbodies = $table.find('tbody'); diff --git a/core/modules/locale/locale.bulk.js b/core/modules/locale/locale.bulk.js index 02cee5e7ede..9d3e5a6e8bd 100644 --- a/core/modules/locale/locale.bulk.js +++ b/core/modules/locale/locale.bulk.js @@ -12,7 +12,7 @@ Drupal.behaviors.importLanguageCodeSelector = { var $form = $('#locale-translate-import-form').once('autodetect-lang'); if ($form.length) { var $langcode = $form.find('.langcode-input'); - var $file = $form.find('.file-import-input') + $form.find('.file-import-input') .on('change', function () { var matches = $(this).val().match(/\.([\-\w]+)\.po/); if (matches && $langcode.find('option[value="' + matches[1] + '"]').length) {