General developer forum

How to add my won logic in mod/scorm/module.js file

 
Picture of phani kumar
How to add my won logic in mod/scorm/module.js file
 
Hi,


I am working on moodle scorm multisco's here I want find last sco object.If it is an last sco I have to display one button when scorm was running.


For that I have to change small login mod/scorm/module.js file.But it was not reflecting there how should I write my code in this file.I tried with "alert" but no use can any one help me out this.below is my code.


M.mod_scorm.connectPrereqCallback = {


    success: function(id, o) {

    $('#nextbtnclick').hide();

.............................................

}

}


   

 
Average of ratings: -