From e445e0acb558b2c4805cef3ed13c84139962a5b3 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Wed, 5 Feb 2014 15:33:03 +0100 Subject: Fix possible javascript error on drag-n-drop (#1489560) --- program/js/list.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'program') 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); -- cgit v1.2.3