mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 17:36:38 +02:00
Fixed some datamodel elements type
This commit is contained in:
parent
9feb9a19d6
commit
66fc6a1c02
2 changed files with 80 additions and 51 deletions
|
@ -82,35 +82,3 @@ var errorCode = "0";
|
|||
function underscore(str) {
|
||||
return str.replace(/\./g,"__");
|
||||
}
|
||||
|
||||
function AddTime (first, second) {
|
||||
var sFirst = first.split(":");
|
||||
var sSecond = second.split(":");
|
||||
var change = 0;
|
||||
|
||||
var secs = (Math.round((parseFloat(sFirst[2],10)+parseFloat(sSecond[2],10))*100))/100; //Seconds
|
||||
change = Math.floor(secs / 60);
|
||||
secs = secs - (change * 60);
|
||||
if (Math.floor(secs) < 10) secs = "0" + secs.toString();
|
||||
|
||||
mins = parseInt(sFirst[1],10)+parseInt(sSecond[1],10)+change; //Minutes
|
||||
change = Math.floor(mins / 60);
|
||||
mins = mins - (change * 60);
|
||||
if (mins < 10) mins = "0" + mins.toString();
|
||||
|
||||
hours = parseInt(sFirst[0],10)+parseInt(sSecond[0],10)+change; //Hours
|
||||
if (hours < 10) hours = "0" + hours.toString();
|
||||
|
||||
return hours + ":" + mins + ":" + secs;
|
||||
}
|
||||
|
||||
/*
|
||||
function SCOFinish() {
|
||||
// Workaround for Safari
|
||||
if (typeof API != 'undefined') {
|
||||
result = API.LMSFinish('');
|
||||
} else {
|
||||
result = API_1484_11.Terminate('');
|
||||
}
|
||||
}
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue