Browse Source

Remove hidden checks from label

pull/2300/head
jlukic 9 years ago
parent
commit
4d5908f40d
1 changed files with 2 additions and 4 deletions
  1. 6
      src/definitions/modules/progress.js

6
src/definitions/modules/progress.js

@ -183,7 +183,7 @@ $.fn.progress = function(parameters) {
var var
value = module.value || 0, value = module.value || 0,
total = module.total || 0, total = module.total || 0,
percent = (module.is.visible() && animating)
percent = (animating)
? module.get.displayPercent() ? module.get.displayPercent()
: module.percent || 0, : module.percent || 0,
left = (module.total > 0) left = (module.total > 0)
@ -376,9 +376,7 @@ $.fn.progress = function(parameters) {
; ;
} }
module.set.barWidth(percent); module.set.barWidth(percent);
if( module.is.visible() ) {
module.set.labelInterval();
}
module.set.labelInterval();
module.set.labels(); module.set.labels();
settings.onChange.call(element, percent, module.value, module.total); settings.onChange.call(element, percent, module.value, module.total);
}, },

Loading…
Cancel
Save