Skip to content

Commit

Permalink
MDL-36990 mod_feedback - removed unneeded parameters for js
Browse files Browse the repository at this point in the history
  • Loading branch information
grabs committed Mar 9, 2013
1 parent 00cd08b commit 67e12ed
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
6 changes: 1 addition & 5 deletions mod/feedback/edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
4 changes: 2 additions & 2 deletions mod/feedback/module.js
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 67e12ed

Please sign in to comment.