https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19329 Josef Moravec <josef.moravec@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|In Discussion |ASSIGNED --- Comment #3 from Josef Moravec <josef.moravec@gmail.com> --- (In reply to Owen Leonard from comment #2)
The manual refers to the wiki, which includes this instruction:
"Important: The script must implement the function $( window ).load(function() because it replaces the original function)."
The example on that wiki page includes a try-catch example which includes "window.print()" and "window.close()."
Isn't this patch going to create conflicts for libraries with existing IntranetSlipPrinterJS setups?
In that case, yes it would be conflict. Then we need to document it better in UI, because the text by the system preference '' says: 'Use the following JavaScript for printing slips. Define at least function printThenClose().' Which is what does not work. I will rework the patch to just change this sentence. Thanks Owen. -- You are receiving this mail because: You are watching all bug changes.