diff options
| author | 2014-10-05 17:29:09 +0200 | |
|---|---|---|
| committer | 2014-10-05 17:32:01 +0200 | |
| commit | d8ed718aab99ad47897fb70ea9086fa704bb912b (patch) | |
| tree | b628ba2fdbb4d5b32659f45020ccb44f9fd97e1b /p/scripts/category.js | |
| parent | 70131f776a5fa30fdf26c64578039aeeb41333c7 (diff) | |
Refactor javascript_vars.phtml
Introduce kind of context objectin JavaScript
See https://github.com/marienfressinaud/FreshRSS/issues/634
See https://github.com/marienfressinaud/FreshRSS/issues/655
Diffstat (limited to 'p/scripts/category.js')
| -rw-r--r-- | p/scripts/category.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/p/scripts/category.js b/p/scripts/category.js index dc5df67e4..c33e68528 100644 --- a/p/scripts/category.js +++ b/p/scripts/category.js @@ -20,13 +20,13 @@ function dragend_process(t) { $(t).remove(); if (parent.children().length <= 0) { - parent.append('<li class="item disabled" dropzone="move">' + str_category_empty + '</li>'); + parent.append('<li class="item disabled" dropzone="move">' + i18n['category_empty'] + '</li>'); } } } function init_draggable() { - if (!(window.$ && window.url_freshrss)) { + if (!(window.$ && window.i18n)) { if (window.console) { console.log('FreshRSS waiting for JS…'); } |
