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) {