Commit 12d17608 authored by alexpott's avatar alexpott
Browse files

Issue #1684852 by nod_: JSHint locale.

parent 361964b4
......@@ -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');
......
......@@ -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) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment