From f7c25489e2c521e0cbcf86d8b75a88bd880c9602 Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Tue, 12 Feb 2013 16:20:57 +0100 Subject: [PATCH 1/1] retry on remove --- redakcja/static/edumed/js/edumed.coffee | 1 + redakcja/static/edumed/js/edumed.js | 1 + 2 files changed, 2 insertions(+) diff --git a/redakcja/static/edumed/js/edumed.coffee b/redakcja/static/edumed/js/edumed.coffee index 7c40bff3..2cb9bdb3 100644 --- a/redakcja/static/edumed/js/edumed.coffee +++ b/redakcja/static/edumed/js/edumed.coffee @@ -124,6 +124,7 @@ class Exercise extends Binding $added.append('x
') $('.remove', $added).click (ev) => + @retry() if not ismultiple $($added.data('original')).removeClass('disabled').draggable('enable') diff --git a/redakcja/static/edumed/js/edumed.js b/redakcja/static/edumed/js/edumed.js index 817dd951..1886b38b 100644 --- a/redakcja/static/edumed/js/edumed.js +++ b/redakcja/static/edumed/js/edumed.js @@ -161,6 +161,7 @@ } $added.append('x
'); return $('.remove', $added).click(function(ev) { + _this.retry(); if (!ismultiple) { $($added.data('original')).removeClass('disabled').draggable('enable'); } -- 2.20.1