]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
True isn't true in Javascript.
authorMikael Nordfeldth <mmn@hethane.se>
Thu, 5 Feb 2015 11:13:01 +0000 (12:13 +0100)
committerMikael Nordfeldth <mmn@hethane.se>
Thu, 5 Feb 2015 11:13:01 +0000 (12:13 +0100)
Apparently True isn't true in javascript. They fiddle around like crazy with
loose typing (causing all kinds of problems) but vars are case sensitive?!

js/util.js

index c31dde1e12dab494c53110cd8b891c73337ed3d9..9c727e9a5376b2cde9d5d9a2418ea57988dc6af0 100644 (file)
@@ -1383,7 +1383,7 @@ var SN = { // StatusNet
          * @param {String} tag
          */
         switchInputFormTab: function (tag, setFocus) {
-            if (typeof setFocus === 'undefined') { setFocus = True; }
+            if (typeof setFocus === 'undefined') { setFocus = true; }
             // The one that's current isn't current anymore
             $('.input_form_nav_tab.current').removeClass('current');
             if (tag != null) {