]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Only Firefox has predefined js function args (thanks MrB)
authorMikael Nordfeldth <mmn@hethane.se>
Thu, 5 Feb 2015 11:05:10 +0000 (12:05 +0100)
committerMikael Nordfeldth <mmn@hethane.se>
Thu, 5 Feb 2015 11:05:10 +0000 (12:05 +0100)
js/util.js

index d2447864ac1b6fc1f5303b400ab36919eb69bfdc..c31dde1e12dab494c53110cd8b891c73337ed3d9 100644 (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) {