summaryrefslogtreecommitdiff
path: root/program
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2014-02-05 15:33:03 +0100
committerAleksander Machniak <alec@alec.pl>2014-02-05 15:33:03 +0100
commitc83a9556e75c8f98cb94ff5f4c3656b773975f02 (patch)
tree2763adb83dfdf9bd8dcb676cb09f20a22ff24bf3 /program
parente837d8515addd9f1eeede00f1be0ab9ef3967c7c (diff)
Fix possible javascript error on drag-n-drop (#1489560)
Diffstat (limited to 'program')
-rw-r--r--program/js/list.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/program/js/list.js b/program/js/list.js
index e05d9fb4b..d54b59d24 100644
--- a/program/js/list.js
+++ b/program/js/list.js
@@ -1345,7 +1345,7 @@ drag_mouse_move: function(e)
var uid = RegExp.$1, row = self.rows[uid];
- if ($.inArray(uid, selection) > -1)
+ if (!row || $.inArray(uid, selection) > -1)
return;
selection.push(uid);