diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-03-26 01:10:04 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-03-26 01:10:04 +0000 |
commit | 432d654ee04c40f573314ef916d28ea9724e4977 (patch) | |
tree | acec896d55ea69eb30aa846865b5c9628c98a09b /usr/local/www | |
parent | 695e913c8de395f72368f64a6d66ccfdcbb712ce (diff) | |
download | pfsense-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/www')
-rwxr-xr-x | usr/local/www/auto_complete_helper.js | 4 |
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'); |