aboutsummaryrefslogtreecommitdiff
path: root/p/scripts/category.js
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2016-08-06 13:18:46 +0200
committerGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2016-08-06 13:18:46 +0200
commit3652dea854200f31492a71243727f6a1be317c4a (patch)
tree6c595170a1abdf036063419e5b3bc5acff96a9f9 /p/scripts/category.js
parent8ffb02e4d12b05bd142216dec75574f5a6bae64e (diff)
JSHint and safer async init_normal
Diffstat (limited to 'p/scripts/category.js')
-rw-r--r--p/scripts/category.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/p/scripts/category.js b/p/scripts/category.js
index c33e68528..be9605bec 100644
--- a/p/scripts/category.js
+++ b/p/scripts/category.js
@@ -1,4 +1,6 @@
"use strict";
+/* globals i18n */
+/* jshint globalstrict: true */
var loading = false,
dnd_successful = false;
@@ -20,7 +22,7 @@ function dragend_process(t) {
$(t).remove();
if (parent.children().length <= 0) {
- parent.append('<li class="item disabled" dropzone="move">' + i18n['category_empty'] + '</li>');
+ parent.append('<li class="item disabled" dropzone="move">' + i18n.category_empty + '</li>');
}
}
}