Project

General

Profile

Actions

Anomalie #627

closed

bug when displaying animated raw value

Added by Simon over 7 years ago. Updated over 7 years ago.

Status:
Fermé
Priority:
Normal
Assignee:
Category:
general
Target version:
Start date:
11/01/2016
Due date:
% Done:

100%

Estimated time:
1.00 h
Resolution:

Description

in dashboard/det.php file.

function animate_raw(obj) {
                var $this = obj;
                // console.log('data-value : ' + $this.attr('data-value'));
                  $({ Counter: 0 }).animate({ Counter: $this.attr('data-value') }, {
                        duration: getRandomInt(2000,4000),
                        easing: 'swing',
                        step: function () {
                           $this.text(Math.ceil(this.Counter) > $this.attr('data-value') ? number_f($this.attr('data-value')) : number_f(Math.ceil(this.Counter)));
                        }
                  });
            };

see screenshot, Should display 94299


Files

bug-raw.png (14.1 KB) bug-raw.png Simon, 11/01/2016 02:40 PM
Actions

Also available in: Atom PDF