summaryrefslogtreecommitdiffstats
path: root/usr/local
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-03-26 01:10:04 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-03-26 01:10:04 +0000
commit432d654ee04c40f573314ef916d28ea9724e4977 (patch)
treeacec896d55ea69eb30aa846865b5c9628c98a09b /usr/local
parent695e913c8de395f72368f64a6d66ccfdcbb712ce (diff)
downloadpfsense-432d654ee04c40f573314ef916d28ea9724e4977.zip
pfsense-432d654ee04c40f573314ef916d28ea9724e4977.tar.gz
Do not try to activate dropdown code if no auto complete items are defined the browser is ie
Diffstat (limited to 'usr/local')
-rwxr-xr-xusr/local/www/auto_complete_helper.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr/local/www/auto_complete_helper.js b/usr/local/www/auto_complete_helper.js
index 355897c..e90da7e 100755
--- a/usr/local/www/auto_complete_helper.js
+++ b/usr/local/www/auto_complete_helper.js
@@ -56,8 +56,10 @@ function actb_parse(n){
return tobuild;
}
function actb_generate(){
- if(navigator.appName == "Microsoft Internet Explorer")
+ if(navigator.appName == "Microsoft Internet Explorer") {
+ if(actb_keywords.length < 1) return; // if no items setup, do not invoke code. prevent ie crashing.
if (document.getElementById('tat_frame')) document.body.removeChild(document.getElementById('tat_frame'));
+ }
if (document.getElementById('tat_table')) document.body.removeChild(document.getElementById('tat_table'));
if(navigator.appName == "Microsoft Internet Explorer") {
frame = document.createElement('iframe');
OpenPOWER on IntegriCloud