Skip to content
Snippets Groups Projects
Commit 87c047c8 authored by John Hoopes's avatar John Hoopes
Browse files

first crack at getting plugin to work with Moodle 2.4

parent b6b2a164
No related branches found
No related tags found
No related merge requests found
......@@ -45,11 +45,19 @@ class block_course_overview_uwmoodle extends block_base {
* Require jQuery and jQuery ui plugins for rendering the block
*/
public function get_required_javascript() {
global $CFG;
parent::get_required_javascript();
$this->page->requires->jquery();
$this->page->requires->jquery_plugin('ui');
$this->page->requires->jquery_plugin('ui-css');
$this->page->requires->jquery_plugin('block_course_overview_uwmoodle-animate-enhanced' , 'block_course_overview_uwmoodle');
if($CFG->version >= '2013051400') {
$this->page->requires->jquery();
$this->page->requires->jquery_plugin('ui');
$this->page->requires->jquery_plugin('ui-css');
$this->page->requires->jquery_plugin('block_course_overview_uwmoodle-animate-enhanced', 'block_course_overview_uwmoodle');
}else{
$this->page->requires->js('/blocks/course_overview_uwmoodle/js/jquery-ui.min.js');
$this->page->requires->css('/blocks/course_overview_uwmoodle/js/jquery-ui.min.css');
}
//$this->page->requires->js('/blocks/course_overview_uwmoodle/js/jquery.animate-enhanced.min.js');
$this->page->requires->js('/blocks/course_overview_uwmoodle/js/course_overview_uwmoodle.js');
}
......
This diff is collapsed.
Source diff could not be displayed: it is too large. Options to address this: view the blob.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment