summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Levy <alon@pobox.com>2014-10-07 21:58:59 +0300
committerAlon Levy <alon@pobox.com>2014-10-07 21:58:59 +0300
commit61ff03d4ab7326e68a4f5cc2893116df7ed99e70 (patch)
tree0555fcc7018dbfa56b98132e1d3b5b52a9a04a52
parent6f30dfaab7a3b97d87067af5fdc3c2b390b8e2e9 (diff)
drag_n_drop: remove debug print
-rw-r--r--scripts/drag_n_drop.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/scripts/drag_n_drop.js b/scripts/drag_n_drop.js
index b5396447..57cd4f1d 100644
--- a/scripts/drag_n_drop.js
+++ b/scripts/drag_n_drop.js
@@ -2,13 +2,12 @@ $(function() {
$(document).on('drop', function(e) {
e.stopPropagation();
e.preventDefault();
- console.log('document drop');
var files = e.originalEvent.dataTransfer.files;
var file = files[files.length - 1];
var fr = new FileReader();
fr.onload = function() {
if (fr.readyState != 2) {
- console.log('error reading from file');
+ console.log('drop: error: reading from file failed');
} else {
console.log(fr.result);
graph.load_from_json(fr.result);