summaryrefslogtreecommitdiffstats
path: root/usr/local/www/auto_complete_helper.js
diff options
context:
space:
mode:
Diffstat (limited to 'usr/local/www/auto_complete_helper.js')
-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