From: Mikael Nordfeldth Date: Thu, 5 Feb 2015 11:05:10 +0000 (+0100) Subject: Only Firefox has predefined js function args (thanks MrB) X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=ad93ad9d073cbf06d6fb80bbcd001f7b5100b530;p=quix0rs-gnu-social.git Only Firefox has predefined js function args (thanks MrB) --- diff --git a/js/util.js b/js/util.js index d2447864ac..c31dde1e12 100644 --- a/js/util.js +++ b/js/util.js @@ -1382,7 +1382,8 @@ var SN = { // StatusNet * * @param {String} tag */ - switchInputFormTab: function (tag, setFocus=true) { + switchInputFormTab: function (tag, setFocus) { + 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) {