Browse files

MDL-36990 mod_feedback - removed unneeded parameters for js

  • Loading branch information...
1 parent 00cd08b commit 67e12ed2fdf652f145b1d6f81ad6b205dbbac005 @grabs grabs committed Dec 11, 2012
Showing with 3 additions and 7 deletions.
  1. +1 −5 mod/feedback/edit.php
  2. +2 −2 mod/feedback/module.js
View
6 mod/feedback/edit.php
@@ -169,13 +169,9 @@
array('position', 'feedback'))
);
- $yuibase = $CFG->httpswwwroot.'/lib/yuilib/'.$CFG->yui3version . '/build/';
$ajaxscript = $CFG->httpswwwroot.'/mod/feedback/ajax.php';
$PAGE->requires->js_init_call('M.mod_feedback.init', array($cm->id,
- sesskey(),
- $yuibase,
- $ajaxscript,
- $CFG->httpswwwroot),
+ sesskey()),
false,
$jsmodule);
}
View
4 mod/feedback/module.js
@@ -1,5 +1,5 @@
M.mod_feedback = {};
-M.mod_feedback.init = function(Y, id, sesskey, yuibase, ajaxscript, moodlebase) {
+M.mod_feedback.init = function(Y, id, sesskey) {
//Listen for all drop:over events
Y.DD.DDM.on('drop:over', function(e) {
//Get a reference to our drag and drop nodes
@@ -124,7 +124,7 @@ M.mod_feedback.init = function(Y, id, sesskey, yuibase, ajaxscript, moodlebase)
// here we save the new itemorder
function saveposition(Y, objekt, id, itemorder, sesskey, spinner){
- Y.io(ajaxscript, {
+ Y.io(M.cfg.wwwroot + '/mod/feedback/ajax.php', {
//the needed paramaters
data: {action: 'saveitemorder',
id: id,

0 comments on commit 67e12ed

Please sign in to comment.