summaryrefslogtreecommitdiff
path: root/scripts/drag_n_drop.js
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/drag_n_drop.js')
-rw-r--r--scripts/drag_n_drop.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/drag_n_drop.js b/scripts/drag_n_drop.js
index 1669a58a..f34b330f 100644
--- a/scripts/drag_n_drop.js
+++ b/scripts/drag_n_drop.js
@@ -1,4 +1,4 @@
-define('drag_n_drop', ['jquery', 'jquery-ui', 'rz_core'], function($, __unused_jqueryui, RZ) {
+define(['jquery', 'jquery-ui', 'rz_core'], function($, __unused_jqueryui, rz_core) {
function init() {
console.log('rhizi: init drag-n-drop');
@@ -13,7 +13,7 @@ $(document).on('drop', function(e) {
console.log('drop: error: reading from file failed');
} else {
console.log('loading dropped file');
- RZ.load_from_json(fr.result);
+ rz_core.load_from_json(fr.result);
}
}
fr.readAsText(file);