Skip to content

Commit

Permalink
MDL-16720 The edit icon in the quiz preview screen pops up the edit f…
Browse files Browse the repository at this point in the history
…orm in a window that is too small
  • Loading branch information
tjhunt committed Sep 28, 2008
1 parent c2a020b commit b959c6e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion question/type/questiontype.php
Expand Up @@ -542,7 +542,8 @@ function print_question(&$question, &$state, $number, $cmoptions, $options) {
if ($context && has_capability('moodle/question:manage', $context)) { if ($context && has_capability('moodle/question:manage', $context)) {
$stredit = get_string('edit'); $stredit = get_string('edit');
$linktext = '<img src="'.$CFG->pixpath.'/t/edit.gif" border="0" alt="'.$stredit.'" />'; $linktext = '<img src="'.$CFG->pixpath.'/t/edit.gif" border="0" alt="'.$stredit.'" />';
$editlink = link_to_popup_window('/question/question.php?inpopup=1&amp;id='.$question->id, 'editquestion', $linktext, 450, 550, $stredit, '', true); $editlink = link_to_popup_window('/question/question.php?inpopup=1&amp;id=' .
$question->id, 'editquestion', $linktext, false, false, $stredit, '', true);
} }


$generalfeedback = ''; $generalfeedback = '';
Expand Down

0 comments on commit b959c6e

Please sign in to comment.