← Back to team overview

dhis2-devs team mailing list archive

[Bug 586974] [NEW] formula-editor-not-working-in-chrome

 

Public bug reported:

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

** Affects: dhis2
     Importance: Undecided
     Assignee: Thanh Tri Tran (tranthanhtri84)
         Status: Confirmed

** Changed in: dhis2
    Milestone: None => 2.0.5

** Changed in: dhis2
     Assignee: (unassigned) => Thanh Tri Tran (tranthanhtri84)

** Changed in: dhis2
       Status: New => Confirmed

-- 
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





Follow ups

References