]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - js/util.js
Possible hack for tags from private dents in public profile or wrong scope (both...
[quix0rs-gnu-social.git] / js / util.js
index d2447864ac1b6fc1f5303b400ab36919eb69bfdc..9c727e9a5376b2cde9d5d9a2418ea57988dc6af0 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) {