-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest1.js
More file actions
28 lines (26 loc) · 723 Bytes
/
Copy pathtest1.js
File metadata and controls
28 lines (26 loc) · 723 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
$(function()
{
$(document).fsTpl.cvtr['durationToTime'] = function(value) {
var time = '';
var isFirst = true;
while (value) {
if (!isFirst) {
time = ':' + time;
}
var lVal = value % 60;
time = ((lVal < 10) ? '0' : '') + (lVal).toString() + time;
value = Math.floor(value / 60);
isFirst = false;
}
return time;
};
$.post(
'ajax.php',
{action:'getArtist', template:true},
function(data){
//Store template in TemplateManager
$('#content').html($(data.template).fsTpl(data.datas));
},
"json"
);
});