dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #06190
[Bug 586974] Re: formula-editor-not-working-in-chrome
** Changed in: dhis2
Assignee: Thanh Tri Tran (tranthanhtri84) => Quang Nguyen (quangnguyen)
--
formula-editor-not-working-in-chrome
https://bugs.launchpad.net/bugs/586974
You received this bug notification because you are a member of DHIS 2
developers, which is subscribed to DHIS.
Status in DHIS 2 - District Health Information Software: Confirmed
Bug description:
The formula editor (for validaton rules left/right side, indicator numerator/denominator) is not working properly in chrome.
When adding a dataelement to the formula, then adding a plus sign (without placing the cursor at the end of the formula manually), the plus sign is placed first in the formula. The cursor should automatically be put at the end of the formula, and the plus sign should appear at the end.
This behaviour should be consistent in all browsers (chrome, ff, ie8, opera).
I think this can be achieved with jquery. This links might be of help:
http://stackoverflow.com/questions/499126/jquery-set-cursor-position-in-text-area
http://www.codewrapper.com/Snippets/View/34/set-cursor-position-in-a-html-textbox-using-jquery
References