fnp
/
edumed.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Allow for only one item in a bucket in questions of type "przyporzadkuj"
[edumed.git]
/
wtem
/
static
/
wtem
/
edumed.coffee
diff --git
a/wtem/static/wtem/edumed.coffee
b/wtem/static/wtem/edumed.coffee
index
f4c5c28
..
ae7aea9
100644
(file)
--- 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_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
check_question: (question) ->
# subjects placed in predicates