X-Git-Url: https://git.mdrn.pl/edumed.git/blobdiff_plain/0cf3b5cb936715be5dcf2877a4873f8c5f7cb209..28e55ad9db74291ea3ca8380fb2bf96280336f55:/wtem/static/wtem/edumed.coffee diff --git a/wtem/static/wtem/edumed.coffee b/wtem/static/wtem/edumed.coffee index f4c5c28..ae7aea9 100644 --- a/wtem/static/wtem/edumed.coffee +++ b/wtem/static/wtem/edumed.coffee @@ -415,6 +415,9 @@ class Przyporzadkuj extends Exercise draggable_equal: (d1, d2) -> return d1.data("no") == d2.data("no") + draggable_accept: ($draggable, $droppable) -> + dropped = $droppable.closest("ul, ol").find(".draggable") + return (super $draggable, $droppable) && dropped.length == 0 check_question: (question) -> # subjects placed in predicates