[interchange-cvs] interchange - heins modified lib/Vend/Menu.pm
interchange-core@icdevgroup.org
interchange-core@icdevgroup.org
Sun Oct 27 00:21:02 2002
User: heins
Date: 2002-10-27 04:20:32 GMT
Modified: lib/Vend Menu.pm
Log:
* Prevent JS errors for Netscape 4.
Revision Changes Path
2.18 +17 -3 interchange/lib/Vend/Menu.pm
rev 2.18, prev_rev 2.17
Index: Menu.pm
===================================================================
RCS file: /var/cvs/interchange/lib/Vend/Menu.pm,v
retrieving revision 2.17
retrieving revision 2.18
diff -u -r2.17 -r2.18
--- Menu.pm 13 Oct 2002 03:42:49 -0000 2.17
+++ Menu.pm 27 Oct 2002 04:20:32 -0000 2.18
@@ -1,6 +1,6 @@
# Vend::Menu - Interchange payment processing routines
#
-# $Id: Menu.pm,v 2.17 2002/10/13 03:42:49 mheins Exp $
+# $Id: Menu.pm,v 2.18 2002/10/27 04:20:32 mheins Exp $
#
# Copyright (C) 2002 Mike Heins, <mike@perusion.net>
#
@@ -21,7 +21,7 @@
package Vend::Menu;
-$VERSION = substr(q$Revision: 2.17 $, 10);
+$VERSION = substr(q$Revision: 2.18 $, 10);
use Vend::Util;
use strict;
@@ -477,6 +477,9 @@
// If you want to move these functions to the HEAD
function ${vpf}menu_link (idx) {
+ if( ${vpf}browserType() == "other" )
+ return;
+
var l = ${vpf}lines[ idx ];
if(l == undefined) {
@@ -572,6 +575,8 @@
function ${vpf}getRightX( obj )
{
+ if( ${vpf}browserType() == "other" )
+ return;
var pos = 0;
if( ${vpf}browserType() == "ie" )
if(${vpf}anchor_down == 1)
@@ -594,6 +599,9 @@
function ${vpf}getTopX( obj )
{
+ if( ${vpf}browserType() == "other" )
+ return;
+
var pos = 0;
if( ${vpf}browserType() == "ie" )
if(${vpf}anchor_down)
@@ -627,6 +635,9 @@
function ${vpf}menuClear(level)
{
+ if( ${vpf}browserType() == "other" )
+ return;
+
if (level == undefined)
level = 0;
level++;
@@ -642,6 +653,9 @@
function ${vpf}menuBusy()
{
+ if( ${vpf}browserType() == "other" )
+ return;
+
clearTimeout( ${vpf}timeoutCode );
${vpf}timeoutCode = -1;
}
@@ -1102,7 +1116,7 @@
return unless $status;
}
- if($row->{page} and $row->{page} !~ /^\w+:/) {
+ if($row->{page} and $row->{page} !~ m{^(\w+:)?/}) {
my $form = $row->{form};
if($form and $form !~ /[\r\n]/) {
$form = join "\n", split $Global::UrlSplittor, $form;