mirror of
https://github.com/e107inc/e107.git
synced 2025-08-02 20:57:26 +02:00
e-progress function added.
This commit is contained in:
@@ -100,6 +100,39 @@ $(document).ready(function()
|
|||||||
$('.modal').modal('show');
|
$('.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);
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Reference in New Issue
Block a user