From: pilpi Date: Sat, 22 Nov 2008 11:29:20 +0000 (+0000) Subject: quiz editing: MDL-17301 avoid inline CSS in mod/quiz/edit.php X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=1cdbd5e46fca948b6e1debf288932e33e9ad0dad;p=moodle.git quiz editing: MDL-17301 avoid inline CSS in mod/quiz/edit.php --- diff --git a/mod/quiz/edit.php b/mod/quiz/edit.php index 119deb4df0..0f2d890be7 100644 --- a/mod/quiz/edit.php +++ b/mod/quiz/edit.php @@ -614,8 +614,6 @@ if (optional_param('savechanges', false, PARAM_BOOL) and confirm_sesskey()) { } } - - $significantchangemade = true; } /// Delete any teacher preview attempts if the quiz has been modified @@ -642,27 +640,13 @@ if (isset($quiz->instance) and $DB->record_exists_select('quiz_attempts', $quiz_has_attempts=true; } - $strupdatemodule = has_capability('moodle/course:manageactivities', $contexts->lowest()) ? update_module_button($cm->id, $course->id, get_string('modulename', 'quiz')) : ""; $navigation = build_navigation($pagetitle, $cm); -$localcss= ' - '; -//Thanks to -//http://vani.vox.com/library/post/yui-simple-showhide-div-using-module.html -//as soon as javascript toggling and saving the state to the server as an ajax call -//has been done, add $quiz_hide_javascript to $localjs -/*$quiz_hide_javascript=""; -if(!$quiz_qbanktool){ - $quiz_hide_javascript='var quiz_qbanktool=true;'; -}else{ - $quiz_hide_javascript='var quiz_qbanktool=false;'; -}*/ $quiz_randomquestion_dialog_listeners='this.dialog_listeners=['; if(($numberoflisteners=quiz_number_of_pages($quiz->questions))==0){ $numberoflisteners=1; @@ -689,6 +673,8 @@ $localjs= '