Ajax event is triggered even after dependent field is not changed. The event method is invoked on blur which means the event will be invoked every time user is moved away from the field. Instead it should invoke only when there is a change.

CommentFileSizeAuthor
#2 ajax_event.patch368 bytesyugasa

Comments

yugasa created an issue. See original summary.

yugasa’s picture

StatusFileSize
new368 bytes
FireHawkX’s picture

Status: Active » Reviewed & tested by the community

well this works!

now ajax only starts when the field is updated with a new value, not all the time when you just click out of it! :)

Only thing needed would be a "cancel ajax" if another fields is updated before it is done calculating...
so that it would "restart" the calculation process if you edit a bunch of fields one after the other, its not "still" calculating the first operation when the other values have changed since...