includes/clientside/static/autofill.js
changeset 1053 bdbb49cf6f1b
parent 1046 cfc6c30c5e2d
child 1227 bdac73ed481e
--- a/includes/clientside/static/autofill.js	Sat Jul 11 20:24:19 2009 -0400
+++ b/includes/clientside/static/autofill.js	Sat Jul 11 20:25:50 2009 -0400
@@ -38,7 +38,7 @@
         },
         tableHeader: '<tr><th>' + $lang.get('user_autofill_heading_suggestions') + '</th></tr>',
         showWhenNoResults: true,
-        noResultsHTML: '<tr><td class="row1" style="font-size: smaller;">' + $lang.get('user_autofill_msg_no_suggestions') + '</td></tr>',
+        noResultsHTML: '<tr><td class="row1" style="font-size: smaller;">' + $lang.get('user_autofill_msg_no_suggestions') + '</td></tr>'
     });
   }
 }
@@ -55,7 +55,7 @@
           return html;
         },
         showWhenNoResults: true,
-        noResultsHTML: '<tr><td class="row1" style="font-size: smaller;">' + $lang.get('user_autofill_msg_no_suggestions') + '</td></tr>',
+        noResultsHTML: '<tr><td class="row1" style="font-size: smaller;">' + $lang.get('user_autofill_msg_no_suggestions') + '</td></tr>'
     });
   }
 }
@@ -491,7 +491,12 @@
       
       if ( options.tableHeader )
       {
-        ul.innerHTML = options.tableHeader;
+        // fails in IE6
+        try
+        {
+          ul.innerHTML = options.tableHeader;
+        }
+        catch ( e ) {};
       }
       
       if ( num == 0 )