[Koha-bugs] [Bug 10522] Javascript error on acquisition pages: YAHOO is not defined
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Tue Jul 2 15:39:12 CEST 2013
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=10522
--- Comment #2 from Owen Leonard <oleonard at myacpl.org> ---
Created attachment 19342
-->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=19342&action=edit
Bug 10522 - Javascript error on acquisition pages: YAHOO is not defined
acq.js includes an immediately invoked function expression, which means
that it runs whether or not it is called. Because this function tries to
reference the YAHOO object, it triggers an error on pages which don't
include the main YAHOO assets. Only the basketgroups page uses this
function and YAHOO assets.
It's probably possible to make this a regular function, but I propose
simply wrapping it in a check for the YAHOO object so that it only
executes on pages where YAHOO exists--the basketgroups page.
To test, apply the patch, clear your browser cache, and test on both the
basketgroups page and at least one page which also includes acq.js
(addorderiso2709.pl, neworderempty.pl, aqbudgets.pl, suggestion.pl,
etc.) and confirm that the browser reports no JavaScript errors.
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list