[Bug 440] JavaScript function openWindow is not defined
http://bugs.koha.org/cgi-bin/bugzilla/show_bug.cgi?id=440 ------- Additional Comments From ctho@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.
participants (1)
-
bugzilla-daemon@wilbur.katipo.co.nz