Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
MDL-47494 ddwtos: Finish making ddwtos work, mostly. Also various oth…
…er JS fixes.

This JavaScript really needs to be rewritten to use YUI3.
  • Loading branch information
timhunt committed Feb 2, 2011
1 parent 6c54354 commit 5ac7176
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
4 changes: 3 additions & 1 deletion question/type/ddwtos/renderer.php
Expand Up @@ -127,7 +127,9 @@ protected function drag_boxes($qa, $group, $choices, question_display_options $o


public function head_code(question_attempt $qa) {
require_js(array('yui_dom-event', 'yui_dragdrop'));
$this->page->requires->yui2_lib('dom');
$this->page->requires->yui2_lib('event');
$this->page->requires->yui2_lib('dragdrop');
return parent::head_code($qa);
}

Expand Down
9 changes: 6 additions & 3 deletions question/type/ddwtos/styles.css
@@ -1,13 +1,16 @@
.que.ddwtos .qtext {
line-height:2em;
margin-top: 1px;
line-height: 2em;
margin-bottom: 0.5em;
display: block;
}

.que.ddwtos .qtext * {
line-height: 2em;
}

.que.ddwtos .answercontainer {
line-height: 2em;
margin-bottom:1em;
margin-bottom: 1em;
display: block;
}

Expand Down

0 comments on commit 5ac7176

Please sign in to comment.