Only Firefox has predefined js function args (thanks MrB)

This commit is contained in:
Mikael Nordfeldth 2015-02-05 12:05:10 +01:00
parent 1b5af3477d
commit ad93ad9d07
1 changed files with 2 additions and 1 deletions

View File

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