From 2d0cf44d837c8d06f38f991d972e68cc40097c0a Mon Sep 17 00:00:00 2001 From: Cameron Date: Thu, 28 Mar 2013 16:21:07 -0700 Subject: [PATCH] e-progress function added. --- e107_web/js/core/admin.jquery.js | 33 ++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/e107_web/js/core/admin.jquery.js b/e107_web/js/core/admin.jquery.js index a2c08602d..d7a72f264 100644 --- a/e107_web/js/core/admin.jquery.js +++ b/e107_web/js/core/admin.jquery.js @@ -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); + }); + + + + /*