retry on remove
authorRadek Czajka <radoslaw.czajka@nowoczesnapolska.org.pl>
Tue, 12 Feb 2013 15:20:57 +0000 (16:20 +0100)
committerRadek Czajka <radoslaw.czajka@nowoczesnapolska.org.pl>
Tue, 12 Feb 2013 15:20:57 +0000 (16:20 +0100)
redakcja/static/edumed/js/edumed.coffee
redakcja/static/edumed/js/edumed.js

index 7c40bff..2cb9bdb 100644 (file)
@@ -124,6 +124,7 @@ class Exercise extends Binding
 
     $added.append('<span class="remove">x</span><div class="clr"></div>')
     $('.remove', $added).click (ev) =>
 
     $added.append('<span class="remove">x</span><div class="clr"></div>')
     $('.remove', $added).click (ev) =>
+      @retry()
       if not ismultiple
         $($added.data('original')).removeClass('disabled').draggable('enable')
 
       if not ismultiple
         $($added.data('original')).removeClass('disabled').draggable('enable')
 
index 817dd95..1886b38 100644 (file)
       }
       $added.append('<span class="remove">x</span><div class="clr"></div>');
       return $('.remove', $added).click(function(ev) {
       }
       $added.append('<span class="remove">x</span><div class="clr"></div>');
       return $('.remove', $added).click(function(ev) {
+        _this.retry();
         if (!ismultiple) {
           $($added.data('original')).removeClass('disabled').draggable('enable');
         }
         if (!ismultiple) {
           $($added.data('original')).removeClass('disabled').draggable('enable');
         }