upgrade
This commit is contained in:
28
main/lp/js/documentapi.js
Normal file
28
main/lp/js/documentapi.js
Normal file
@@ -0,0 +1,28 @@
|
||||
// JS interface enabling scorm content to use main/document/remote.php easily
|
||||
// CBlue SPRL, Arnaud Ligot <arnaud@cblue.be>
|
||||
|
||||
|
||||
lms_documents_list = function(path) {
|
||||
var result;
|
||||
$.ajax({
|
||||
async: false,
|
||||
type: "POST",
|
||||
datatype: "json",
|
||||
url: "../document/remote.php",
|
||||
data: {
|
||||
action: "list",
|
||||
cwd: path,
|
||||
cidReq: chamilo_courseCode,
|
||||
},
|
||||
success: function(data) {
|
||||
result = eval("("+data+")");
|
||||
}
|
||||
});
|
||||
return result;
|
||||
}
|
||||
|
||||
// Accessor object
|
||||
function DOCUMENTAPIobject() {
|
||||
this.list = lms_documents_list;
|
||||
}
|
||||
var DOCUMENTAPI = new DOCUMENTAPIobject();
|
||||
Reference in New Issue
Block a user