Currently its not that easy to keep track of changes in an atom reference field from JS. (Including when an atom gets removed and so on)

One easy way would be to listen for changes on the underlying text field. However that is not possible because the value is set by val() and with val() no event will fire.

So the proposed resolution is to add a change() trigger after the val() function.

CommentFileSizeAuthor
#2 atom_reference_field-2457779-2.patch815 bytesmr.york

Comments

nagy.balint’s picture

Title: Atom reference field does not fire a change event on the underlying text field when an atom is dropped » Atom reference field does not fire a change event on the underlying text field when an atom is dropped or removed
mr.york’s picture

StatusFileSize
new815 bytes

Attached the patch.

nagy.balint’s picture

Status: Active » Needs review

  • nagy.balint committed 35e1673 on 7.x-1.x authored by mr.york
    Issue #2457779 by mr.york: Atom reference field does not fire a change...
nagy.balint’s picture

Status: Needs review » Fixed

Works fine, thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.