This works better cross-browser
authorMichael M Slusarz <slusarz@curecanti.org>
Wed, 28 Oct 2009 23:14:34 +0000 (17:14 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Thu, 29 Oct 2009 02:26:16 +0000 (20:26 -0600)
imp/js/login.js

index 10f6daa..a5352af 100644 (file)
@@ -23,9 +23,10 @@ var ImpLogin = {
     onDomLoad: function()
     {
         /* Activate dynamic view. */
-        var o = $('imp_select_view').down('option[value=dimp]').show();
+        var s = $('imp_select_view'),
+            o = s.down('option[value=dimp]').show();
         if (this.dimp_sel) {
-            o.writeAttribute('selected', 'selected');
+            s.selectedIndex = o.index;
         }
     }
 };