quiz editing: MDL-17297 Got rid of editcss.js and adjusted stylesheets accordingly

This commit is contained in:
pilpi 2008-11-22 11:42:06 +00:00
parent 1cdbd5e46f
commit d9daa35ca9
3 changed files with 5 additions and 14 deletions

View File

@ -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,

View File

@ -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');
});

View File

@ -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;
}