setValue() does all the work needed for us
authorMichael M Slusarz <slusarz@curecanti.org>
Fri, 16 Apr 2010 22:30:59 +0000 (16:30 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Mon, 19 Apr 2010 19:31:05 +0000 (13:31 -0600)
horde/js/identityselect.js

index 5975298..19685cc 100644 (file)
@@ -22,15 +22,6 @@ var HordeIdentitySelect = {
             var field = $(a[0]);
 
             switch (a[1]) {
-            case "enum":
-                for (var j = 0; j < field.options.length; ++j) {
-                    if (field.options[j].value == a[2]) {
-                        field.selectedIndex = j;
-                        break;
-                    }
-                }
-                break;
-
             case "special":
                 identity.fire('HordeIdentitySelect:change', {
                     i: id,