From ad93ad9d073cbf06d6fb80bbcd001f7b5100b530 Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Thu, 5 Feb 2015 12:05:10 +0100 Subject: [PATCH] Only Firefox has predefined js function args (thanks MrB) --- js/util.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) {