From: Radek Czajka Date: Tue, 12 Feb 2013 15:20:57 +0000 (+0100) Subject: retry on remove X-Git-Url: https://git.mdrn.pl/redakcja.git/commitdiff_plain/f7c25489e2c521e0cbcf86d8b75a88bd880c9602?ds=inline retry on remove --- 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'); }