src/pyams_portal/resources/js/portal.js
changeset 198 3e934db06959
parent 197 43b42acef9d8
child 230 2d87016bc7b6
--- a/src/pyams_portal/resources/js/portal.js	Wed Sep 26 17:47:33 2018 +0200
+++ b/src/pyams_portal/resources/js/portal.js	Wed Sep 26 18:35:37 2018 +0200
@@ -298,7 +298,11 @@
 				}
 				ui.draggable.addClass('already-dropped');
 				var row_id = ui.helper.parents('.row:first').data('ams-row-id');
-				MyAMS.dialog.open('add-template-slot.html?add_form.widgets.row_id=' + row_id);
+				MyAMS.dialog.open('add-template-slot.html?add_form.widgets.row_id=' + row_id, {}, {
+					hide: function() {
+						$('.already-dropped').remove();
+					}
+				});
 			},
 
 			startSlotResize: function(event, ui) {