2012-02-12 23:11:23 +00:00
|
|
|
|
|
|
|
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() {
|
2013-02-25 22:31:54 +00:00
|
|
|
window.location = '../index.jim?dir=' + $('#params').attr('dir');
|
2012-02-12 23:11:23 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
$('#mpgit').button().click(function() {
|
|
|
|
$('#mpgdiv').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);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
});
|
|
|
|
|