/** * Updates the CSS/JS requirements for this form */ protected function set_form_requirements() { global $PAGE, $CFG; parent::set_form_requirements(); init_js_modules("omerointeractive"); $PAGE->requires->css(new moodle_url("{$CFG->wwwroot}/question/type/omerointeractive/css/question-editor-interactive.css")); }
public static function configure_requirements(question_attempt $qa) { global $CFG, $PAGE; init_js_modules("omerocommon"); init_js_modules("omerointeractive"); init_js_imageviewer(get_config('omero', 'omero_restendpoint')); $PAGE->requires->css("/question/type/omerocommon/css/message-dialog.css"); $PAGE->requires->css("/question/type/omerocommon/css/modal-image-dialog.css"); $PAGE->requires->css("/question/type/omerocommon/css/question-player-base.css"); $PAGE->requires->string_for_js('validate_question', 'qtype_omerocommon'); $PAGE->requires->string_for_js('validate_editor_not_valid', 'qtype_omerocommon'); $PAGE->requires->string_for_js('validate_editor_check_question', 'qtype_omerocommon'); $PAGE->requires->string_for_js('validate_editor_not_existing_rois', 'qtype_omerocommon'); $PAGE->requires->string_for_js('validate_player_not_existing_rois', 'qtype_omerocommon'); }
/** * Updates the CSS/JS requirements for this form */ protected function set_form_requirements() { parent::set_form_requirements(); init_js_modules("omeromultichoice"); }
protected function set_form_requirements() { global $CFG, $PAGE; // CSS $PAGE->requires->css(new moodle_url("{$CFG->wwwroot}/question/type/omerocommon/css/message-dialog.css")); $PAGE->requires->css(new moodle_url("{$CFG->wwwroot}/question/type/omerocommon/css/modal-image-dialog.css")); $PAGE->requires->css(new moodle_url("{$CFG->wwwroot}/question/type/omerocommon/css/common-question-editor.css")); // Javascript init_js_modules("omerocommon"); init_js_imageviewer(get_config('omero', 'omero_restendpoint')); }