You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
567 B
28 lines
567 B
// 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();
|
|
|