[LON-CAPA-cvs] cvs: loncom /interface loncommon.pm
raeburn
raeburn at source.lon-capa.org
Sun Nov 12 08:15:26 EST 2017
raeburn Sun Nov 12 13:15:26 2017 EDT
Modified files:
/loncom/interface loncommon.pm
Log:
- Updating text in progress bar when there is no change in progress value
requires explicit command because progressbar change action is only fired
if value changes.
Index: loncom/interface/loncommon.pm
diff -u loncom/interface/loncommon.pm:1.1300 loncom/interface/loncommon.pm:1.1301
--- loncom/interface/loncommon.pm:1.1300 Sun Nov 5 19:04:44 2017
+++ loncom/interface/loncommon.pm Sun Nov 12 13:15:25 2017
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# a pile of common routines
#
-# $Id: loncommon.pm,v 1.1300 2017/11/05 19:04:44 raeburn Exp $
+# $Id: loncommon.pm,v 1.1301 2017/11/12 13:15:25 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -8921,7 +8921,11 @@
function LCupdateProgress(percent,progresstext,id) {
LCprogressTxt=progresstext;
- \$('#progressbar'+id).progressbar('value',percent);
+ if (percent === \$('#progressbar'+id).progressbar( "value" )) {
+ \$('#progressbar'+id).find('.pblabel').text(LCprogressTxt);
+ } else {
+ \$('#progressbar'+id).progressbar('value',percent);
+ }
}
// ]]>
</script>
More information about the LON-CAPA-cvs
mailing list