mirror of
https://github.com/moodle/moodle.git
synced 2025-08-09 10:56:56 +02:00
mod quiz + questions MDL-22370 convert JavaScript to YUI3 and modules.
Note, quiz editing JS has not been done yet.
This commit is contained in:
parent
24f17d7588
commit
ff065f96bc
15 changed files with 418 additions and 478 deletions
|
@ -1251,3 +1251,15 @@ function quiz_error($quiz, $errorcode, $a = null) {
|
|||
function quiz_check_safe_browser() {
|
||||
return strpos($_SERVER['HTTP_USER_AGENT'], "SEB") !== false;
|
||||
}
|
||||
|
||||
function quiz_get_js_module() {
|
||||
return array(
|
||||
'name' => 'mod_quiz',
|
||||
'fullpath' => '/mod/quiz/module.js',
|
||||
'requires' => array('base', 'dom', 'event-delegate', 'event-key'),
|
||||
'strings' => array(
|
||||
array('timesup', 'quiz'),
|
||||
array('functiondisabledbysecuremode', 'quiz'),
|
||||
),
|
||||
);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue