From: Mikael Nordfeldth Date: Thu, 5 Feb 2015 11:13:01 +0000 (+0100) Subject: True isn't true in Javascript. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=1c478768ad2558dd0f789d3941da2162fdb34a76;p=quix0rs-gnu-social.git True isn't true in Javascript. 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?! --- diff --git a/js/util.js b/js/util.js index c31dde1e12..9c727e9a53 100644 --- a/js/util.js +++ b/js/util.js @@ -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) {