]> jfr.im git - irc/quakenet/qwebirc.git/commitdiff
Fix silly typo and add TextOption back.
authorChris Porter <redacted>
Sun, 26 Jul 2009 03:58:15 +0000 (04:58 +0100)
committerChris Porter <redacted>
Sun, 26 Jul 2009 03:58:15 +0000 (04:58 +0100)
js/ui/panes/options.js

index 21e8f7a8dcfcb20e7fa0954d77932f7bd7243ac9..fbd28b2d3a646e90539ed18203b82d46c0ef306f 100644 (file)
@@ -291,10 +291,12 @@ qwebirc.ui.Options = new Class({
         var type;
         if(stype == "boolean") {
           type = qwebirc.config.CheckOption;
-        } else {
+        } else if(stype == "function") {
           var options = default_();
           type = options.class_;
-          defualt_ = options.default_;
+          default_ = options.default_;
+        } else {
+          type = qwebirc.config.TextOption;
         }
         return new type(optionId, prefix, label, default_, moreextras);
       }