mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-36990 mod_feedback - migrated the yui dragdrop stuff into a yui module
This commit is contained in:
parent
c206a2b3fd
commit
bdd694fd85
3 changed files with 239 additions and 200 deletions
|
@ -160,20 +160,8 @@ $PAGE->set_title(format_string($feedback->name));
|
|||
|
||||
//Adding the javascript module for the items dragdrop.
|
||||
if ($do_show == 'edit') {
|
||||
$jsmodule = array(
|
||||
'name' => 'mod_feedback',
|
||||
'fullpath' => '/mod/feedback/module.js',
|
||||
'requires' => array('io', 'json-parse', 'dd-constrain', 'dd-proxy', 'dd-drop'),
|
||||
'strings' => array(array('pluginname', 'feedback'),
|
||||
array('move_item', 'feedback'),
|
||||
array('position', 'feedback'))
|
||||
);
|
||||
|
||||
$ajaxscript = $CFG->httpswwwroot.'/mod/feedback/ajax.php';
|
||||
$PAGE->requires->js_init_call('M.mod_feedback.init', array($cm->id,
|
||||
sesskey()),
|
||||
false,
|
||||
$jsmodule);
|
||||
$PAGE->requires->yui_module('moodle-mod_feedback-dragdrop', 'M.mod_feedback.init_dragdrop',
|
||||
array(array('cmid' => $cm->id)));
|
||||
}
|
||||
|
||||
echo $OUTPUT->header();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue