mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 05:58:34 +01:00
quiz editing: MDL-17297 Got rid of editcss.js and adjusted stylesheets accordingly
This commit is contained in:
parent
1cdbd5e46f
commit
d9daa35ca9
@ -671,8 +671,6 @@ $localjs= '<script type="text/javascript" charset="utf-8">
|
||||
<script type="text/javascript" src="'.$CFG->wwwroot.
|
||||
'/mod/quiz/edit.js" charset="utf-8"></script>
|
||||
';
|
||||
//apply CSS for when javascript is enabled
|
||||
require_js('mod/quiz/editcss.js',true);
|
||||
$localcss= '<link rel="stylesheet" type="text/css" href="'.$CFG->wwwroot.
|
||||
'/lib/yui/container/assets/container.css" />';
|
||||
print_header_simple($pagetitle, '', $navigation, "", $localcss,true,
|
||||
|
@ -1,7 +0,0 @@
|
||||
/** JavaScript for /mod/quiz/edit.php to be loaded in the header
|
||||
* Adds a CSS class to display edit.php for users with JavaScript.
|
||||
*/
|
||||
YAHOO.util.Event.onDOMReady(
|
||||
function(){
|
||||
YAHOO.util.Dom.addClass('quizcontentsblock', 'usejs');
|
||||
});
|
@ -4957,17 +4957,17 @@ css id's of question bank*/
|
||||
display:none;
|
||||
}
|
||||
|
||||
/*.usejs class is added via javascript so these will toggle if js is enabled*/
|
||||
#mod-quiz-edit .usejs #repaginatedialog{
|
||||
/* these will toggle if js is enabled */
|
||||
body.jsenabled #quizcontentsblock #repaginatedialog{
|
||||
display:none;
|
||||
}
|
||||
#mod-quiz-edit .usejs #repaginatedialog .hd{
|
||||
body.jsenabled #quizcontentsblock #repaginatedialog .hd{
|
||||
display:block;
|
||||
}
|
||||
#mod-quiz-edit .usejs #repaginatedialog .bd{
|
||||
body.jsenabled #quizcontentsblock #repaginatedialog .bd{
|
||||
padding:1em;
|
||||
}
|
||||
#mod-quiz-edit .usejs .repaginatecommand #repaginatecommand{
|
||||
body.jsenabled #quizcontentsblock .repaginatecommand #repaginatecommand{
|
||||
display:block;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user