[Koha-cvs] CVS: koha-html/intranet-html/includes cat-top.inc,1.5.4.1,1.5.4.2 circulation-top.inc,1.6.4.1,1.6.4.2
Steve Tonnesen
tonnesen at users.sourceforge.net
Fri Oct 25 21:42:32 CEST 2002
Update of /cvsroot/koha/koha-html/intranet-html/includes
In directory usw-pr-cvs1:/tmp/cvs-serv3290/intranet-html/includes
Modified Files:
Tag: rel-1-2
cat-top.inc circulation-top.inc
Log Message:
This should fix the form focus bug in IE when there is no form to focus on.
Index: cat-top.inc
===================================================================
RCS file: /cvsroot/koha/koha-html/intranet-html/includes/cat-top.inc,v
retrieving revision 1.5.4.1
retrieving revision 1.5.4.2
diff -C2 -r1.5.4.1 -r1.5.4.2
*** cat-top.inc 11 Jul 2002 18:00:19 -0000 1.5.4.1
--- cat-top.inc 25 Oct 2002 19:42:26 -0000 1.5.4.2
***************
*** 27,31 ****
function focusinput() {
window.onerror=null;
! document.forms[0].elements[0].focus();
}
--- 27,33 ----
function focusinput() {
window.onerror=null;
! if (document.forms[0]) {
! document.forms[0].elements[0].focus();
! }
}
Index: circulation-top.inc
===================================================================
RCS file: /cvsroot/koha/koha-html/intranet-html/includes/circulation-top.inc,v
retrieving revision 1.6.4.1
retrieving revision 1.6.4.2
diff -C2 -r1.6.4.1 -r1.6.4.2
*** circulation-top.inc 11 Jul 2002 18:00:19 -0000 1.6.4.1
--- circulation-top.inc 25 Oct 2002 19:42:27 -0000 1.6.4.2
***************
*** 26,30 ****
function focusinput() {
window.onerror=null;
! document.forms[0].elements[0].focus();
}
if (document.images){
--- 26,32 ----
function focusinput() {
window.onerror=null;
! if (document.forms[0]) {
! document.forms[0].elements[0].focus();
! }
}
if (document.images){
More information about the Koha-cvs
mailing list