Browse Source

Fixes #1611 Issue with incorrect conditional making percent appear as value for value progress

pull/1627/head
jlukic 10 years ago
parent
commit
eff3a89ae8
2 changed files with 2 additions and 1 deletions
  1. 1
      RELEASE-NOTES.md
  2. 2
      src/definitions/modules/progress.js

1
RELEASE-NOTES.md

@ -28,6 +28,7 @@
- **Segment** - ``ui tabular menu`` now correctly aligns with attached segment when using fluid variation *Thanks @MohammadYounes*
- **Steps** - Steps now use ``table-cell`` to allow steps to be equal height by default, even with different content height.
- **Button** - Fix issue with labeled icon groups in material theme
- **Progress* - Fixes bug with progress that use ``total`` and ``value`` receiving the wrong values for text templates
### Version 1.6.4 - January 12, 2015

2
src/definitions/modules/progress.js

@ -363,7 +363,7 @@ $.fn.progress = function(parameters) {
if(module.total) {
module.value = Math.round( (percent / 100) * module.total);
}
if(settings.limitValues) {
else if(settings.limitValues) {
module.value = (module.value > 100)
? 100
: (module.value < 0)

Loading…
Cancel
Save