[Koha-bugs] [Bug 8512] Manual for 3.8 SelfCheckout JavaScript example produces error

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Jul 27 09:45:12 CEST 2012


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

--- Comment #1 from Marc Véron <veron at veron.ch> ---

http://manual.koha-community.org/3.8/en/selfcheckout.html

The JavaScript example for adding a link to the Self Checkout module using the
intranetuserjs system preference leads to a JavaScript error (Unterminated
string) if it is copy/pasted 'as is' into the system preference.

This is due to the line breaks in the example:
------
$(document).ready(function(){ $("#login
      #submit").parent().after("<p><a
      href=\"http://YOUR_KOHA_OPAC_URL/cgi-bin/koha/sco/sco-main.pl\"
      target=\"_blank\">Self-Checkout</a></p>"); }); 
------

I propose to add a warning like:

"Warning: Please enter the code as one line."

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


More information about the Koha-bugs mailing list