1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-01 20:30:39 +02:00

e-progress function added.

This commit is contained in:
Cameron
2013-03-28 16:21:07 -07:00
parent 209e884ab7
commit 2d0cf44d83

View File

@@ -100,6 +100,39 @@ $(document).ready(function()
$('.modal').modal('show');
});
$('.e-progress').on('click', function(e)
{
alert('progress clicked');
var target = 'progress';
var script = $(this).attr('data-progress');
var progresspump = setInterval(function(){
$.get(script, function(data){
$("#"+target).css('width',data+'%'); /* update the progress bar width */
$("#"+target).html(data+'%'); /* and display the numeric value */
if(data > 99.999) {
clearInterval(progresspump);
$("#progressouter").removeClass("active");
$("#progress").html("Done");
}
});
}, 2000);
});
/*