[Koha-bugs] [Bug 440] JavaScript function openWindow is not defined

bugzilla-daemon at wilbur.katipo.co.nz bugzilla-daemon at wilbur.katipo.co.nz
Thu May 8 20:22:08 CEST 2003


http://bugs.koha.org/cgi-bin/bugzilla/show_bug.cgi?id=440





------- Additional Comments From ctho at freeshell.org  2003-05-09 06:22 -------
After fixing bug 438, I tested  returning an item on reserve list. There are
some links (for item and user detail), which do not work, in the table "Reserve
Found". In Intranet directory (htdocs/intranet-tmpl/default/en/circ/), the file
returns.tmpl has links using JavaScript to open new window (I guess so by
function name). Function openWindow() is not defined within returns.tmpl nor
linked external file.

Here's my suggestion:
In returns.tmpl, I append the follwing JavaScript codes below the include header
(<TMPL_INCLUDE ...>):

<script language="JavaScript">
<!-- Hide from old browsers
function openwindow(targeturl, windowname) {
newwin =
window.open(targeturl,windowname,"height=480,width=640,scrollbars,resizable")
}
// end hiding -->
</script>

Then I replace all links which use JavaScript, eg. replace

  <a href=/cgi-bin/koha/moremember.pl?bornum=<TMPL_VAR Name="bornum">
onClick='openWindow(this,'Member', 480, 640)'>

by

<a href="JavaScript:openwindow('/cgi-bin/koha/moremember.pl?bornum=<TMPL_VAR
Name="bornum">','Member')">



------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.




More information about the Koha-bugs mailing list