[Koha-bugs] [Bug 13391] MARC 008 builder plugin not compatible with browser autocompletion

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Dec 5 12:54:05 CET 2014


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13391

--- Comment #5 from Jacek Ablewicz <abl at biblos.pk.edu.pl> ---
(In reply to M. de Rooy from comment #3)

> > However, none of those methods are quite sufficient for older browsers.
> How far should we go?

Hopefully not too far ;). I did some googling, and it turns out that making it
work 100% reliably for legacy browser wolud be pretty complicated. For example,
there is an YUI module for that (event-valuechange), but it resorts to the
timers / pooling methods, which is kind of ugly.
So in the submitted patch I simply added two event handlers (oninput= and
onblur=) - unless I'm very much mistaken, 1st should solve the problem for
modern browsers, and the 2nd improve it a little bit for older ones. There is a
little drawback though: in the modern browser, the same event handling code
will now be executed (up to) 3 times when the user changes something in the
given plugin <input> field. It doesn't seem to cause any noticeable issues
performance-wise, but sill..

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list