Skip to content

Commit

Permalink
MDL-36990 mod_feedback - migrated the yui dragdrop stuff into a yui m…
Browse files Browse the repository at this point in the history
…odule
  • Loading branch information
grabs committed Mar 9, 2013
1 parent c206a2b commit bdd694f
Show file tree
Hide file tree
Showing 3 changed files with 239 additions and 200 deletions.
16 changes: 2 additions & 14 deletions mod/feedback/edit.php
Expand Up @@ -160,20 +160,8 @@

//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();
Expand Down
186 changes: 0 additions & 186 deletions mod/feedback/module.js

This file was deleted.

0 comments on commit bdd694f

Please sign in to comment.