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:56 +0100
commite445e0acb558b2c4805cef3ed13c84139962a5b3 (patch)
treee0c4e4e8971637169b700af392e1c200d6c7ebce /program
parent92eb72dafce42791e5dc0443d615602e5ea78878 (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);