@ -1029,13 +1029,14 @@ class Answer
*/
public function getJs()
{
//if ($this->questionId == 2)
return "<script>
$(window).on('load', function() {
jsPlumb.ready(function() {
if ($('#drag{$this->questionId}_question').length > 0) {
MatchingDraggable.init('{$this->questionId}');
}
});
</script>";
@ -1277,7 +1277,7 @@ HTML;
$s .= "
<script>
$(function() {
jsPlumb.connect({
source: 'window_$windowId',
target: 'window_{$questionId}_{$selectedIndex}_answer',