diff options
| author | Alon Levy <alon@pobox.com> | 2014-10-07 21:58:59 +0300 |
|---|---|---|
| committer | Alon Levy <alon@pobox.com> | 2014-10-07 21:58:59 +0300 |
| commit | 61ff03d4ab7326e68a4f5cc2893116df7ed99e70 (patch) | |
| tree | 0555fcc7018dbfa56b98132e1d3b5b52a9a04a52 /scripts/drag_n_drop.js | |
| parent | 6f30dfaab7a3b97d87067af5fdc3c2b390b8e2e9 (diff) | |
drag_n_drop: remove debug print
Diffstat (limited to 'scripts/drag_n_drop.js')
| -rw-r--r-- | scripts/drag_n_drop.js | 3 |
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); |
