Switching between fields for height and weight changes constantly #220

Closed
ElDeveloper opened this Issue Mar 19, 2013 · 5 comments

3 participants

@ElDeveloper
Quantitative Insights Into Microbial Ecology member

Switching between the height and weight fields using the tab key, will constantly change the values that you've inputed.

@wasade
Quantitative Insights Into Microbial Ecology member

related to #188

@wasade
Quantitative Insights Into Microbial Ecology member

In the conversion methods, what about something like:

var cur_cm = document.getElementById('height_cm').value
if(!validateNumber(cur_cm)) { /* update if there isn't a value */
    document.getElementById('height_cm').value = centimeters.toFixed(2)
} else if(abs(centimeters - cur_cm) > 0.1) { /* update if the value is reasonably changed */
    document.getElementById('height_cm').value = centimeters.toFixed(2)
} else {}
@meganap

I'm fine with any solution proposed, can you make that change?

@wasade
Quantitative Insights Into Microbial Ecology member
@meganap

Okay I'll fix it

@meganap meganap was assigned Mar 19, 2013
@meganap meganap added a commit to meganap/qiime_web_app that referenced this issue Mar 19, 2013
@meganap meganap Height and weight no longer change on each tab fixes issue #220 d601286
@meganap meganap closed this Mar 19, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment