From 834f7c4a5a07e71bb526bcf943db357073377a01 Mon Sep 17 00:00:00 2001 From: tjhunt Date: Tue, 21 Oct 2008 06:34:14 +0000 Subject: [PATCH] qtype description: MDL-16863 Put back edit icon next to descriptions for teachers. --- question/type/description/questiontype.php | 5 +++-- theme/standard/styles_layout.css | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/question/type/description/questiontype.php b/question/type/description/questiontype.php index 0702378c3e..36acbdd469 100644 --- a/question/type/description/questiontype.php +++ b/question/type/description/questiontype.php @@ -59,8 +59,9 @@ class description_qtype extends default_questiontype { if (question_has_capability_on($question, 'edit')) { $stredit = get_string('edit'); $linktext = ''.$stredit.''; - $editlink = link_to_popup_window('/question/question.php?id='.$question->id.$cmorcourseid, - 'editquestion', $linktext, 450, 550, $stredit, '', true); + $editlink = link_to_popup_window('/question/question.php?inpopup=1&id=' . + $question->id . $cmorcourseid, 'editquestion', + $linktext, false, false, $stredit, '', true); } $questiontext = $this->format_text($question->questiontext, $question->questiontextformat, $cmoptions); diff --git a/theme/standard/styles_layout.css b/theme/standard/styles_layout.css index 4649a7e563..fea7b49519 100644 --- a/theme/standard/styles_layout.css +++ b/theme/standard/styles_layout.css @@ -2686,11 +2686,12 @@ body.notes .notesgroup { } .que .content { float: left; - margin: 0; + margin: 0.5em 0; width: 88%; } .que.description .info { - display: none; + margin: 0.5em 0 0.5em 0.2em; + width: 1em; } .que.description .content, .que.description .generalfeedback { -- 2.39.5