From 052b25f99f0c96c88d93c2c3df57484e4d743d0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Pi=C4=8Dman?= Date: Thu, 20 Feb 2020 16:19:21 +0100 Subject: [PATCH] #1080 Drag & Drop --- app/views/dmsf/_query_list.html.erb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/views/dmsf/_query_list.html.erb b/app/views/dmsf/_query_list.html.erb index d91452e3..2cb88a0f 100644 --- a/app/views/dmsf/_query_list.html.erb +++ b/app/views/dmsf/_query_list.html.erb @@ -87,7 +87,9 @@ }, complete: function(jqXHR, textStatus, errorThrown){ handle.removeClass("ui-state-highlight ajax-loading") - ui.draggable.remove(); + if(textStatus == 'success'){ + ui.draggable.remove(); + } } }); }