https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=30123

--- Comment #10 from Brendan Lawlor <[email protected]> ---
(In reply to Owen Leonard from comment #9)
> Why trigger change() after the on("change") event?

The javascript currently has a bit of logic that is repeated twice, because it
has to run once when the page loads and then again whenever the library select
is changed. I wanted to make it DRY, so change() triggers the on change event
when the page first loads. Maybe it would be more readable if it was instead
written as a function that gets called twice?

I wrote it this way so that when I was testing I only had to edit the logic in
one place.

Maybe I should submit another patch that just updates the minimal number of
lines that need to be changed? Instead of changing the whole file so that the
change is easier to see. It's mostly just adding a conditional to set the
current desk if it needs to be set.

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to