forked from hummypkg/webif
22320536ee
git-svn-id: file:///root/webif/svn/humax/pkg/src/webif/trunk@1420 2a923420-c742-0410-a762-8d5b09965624
36 lines
713 B
JavaScript
Executable File
36 lines
713 B
JavaScript
Executable File
|
|
var handle = 0;
|
|
|
|
function update()
|
|
{
|
|
$.get('progress.jim?file=' + $('#params').attr('rfile'),
|
|
function(data) {
|
|
if (handle)
|
|
$('#progressbar').reportprogress(data);
|
|
});
|
|
}
|
|
|
|
$(document).ready(function() {
|
|
|
|
$('#progressbar').reportprogress(0);
|
|
|
|
$('#back').button().click(function() {
|
|
window.location = '../index.jim?dir=' + $('#params').attr('dir');
|
|
});
|
|
|
|
$('#audioit').button().click(function() {
|
|
$('#audiodiv').hide('slow');
|
|
$('#progressdiv').show('slow');
|
|
handle = setInterval("update()", 1000);
|
|
$('#output').load('execute.jim?file=' + $('#params').attr('rfile'),
|
|
function() {
|
|
clearInterval(handle);
|
|
handle = 0;
|
|
$('#back').show();
|
|
$('#progressbar').reportprogress(100);
|
|
});
|
|
});
|
|
|
|
});
|
|
|