[DEMO] automatic saving of draft comments

Jan Heylen heyleke at gmail.com
Sat May 16 08:11:43 EDT 2015


Hi,

as a 'bonus' on the draft workflow, I wanted to change the way comments are
"edited", I found this javascript event "blur", but I'm having issues with
it because in firefox, the relatedTarget object is always NULL on a BLUR
event, while on other browsers, this points to the object that gets the
focus (e.g. the cancel button)

You can see the difference in browser behavior here:
http://people.mozilla.org/~ayang/687787/focusin_out.html

and a demo/code on this blur demo here:
http://heyleke.pythonanywhere.com/kallithea-heyleke/changeset/28a2bd5250ba1bb26d9a09b51c95e1e07bab6ff3
(login: test pass: test)

br,

Jan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sfconservancy.org/pipermail/kallithea-general/attachments/20150516/e8bd27e0/attachment.html>


More information about the kallithea-general mailing list