Only Firefox has predefined js function args (thanks MrB)
This commit is contained in:
parent
1b5af3477d
commit
ad93ad9d07
|
@ -1382,7 +1382,8 @@ var SN = { // StatusNet
|
||||||
*
|
*
|
||||||
* @param {String} tag
|
* @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
|
// The one that's current isn't current anymore
|
||||||
$('.input_form_nav_tab.current').removeClass('current');
|
$('.input_form_nav_tab.current').removeClass('current');
|
||||||
if (tag != null) {
|
if (tag != null) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user