Skip to content

Commit 8374749

Browse files
committedApr 30, 2020
Merge origin/develop into develop
2 parents 2725bc2 + 117889f commit 8374749

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed
 

‎assets/js/desktop/postinit.js

+7-5
Original file line numberDiff line numberDiff line change
@@ -183,12 +183,14 @@ function initSliders() {
183183
*/
184184
function initTabs() {
185185
$('.nav-tabs a').on('click', function (e) {
186-
var scrollHeight = $(document).scrollTop();
187-
$(this).tab('show');
188-
window.scrollTo(0, scrollHeight);
189-
setTimeout(function () {
186+
if ($(this).attr('href') !== '#') {
187+
var scrollHeight = $(document).scrollTop();
188+
$(this).tab('show');
190189
window.scrollTo(0, scrollHeight);
191-
}, 0);
190+
setTimeout(function () {
191+
window.scrollTo(0, scrollHeight);
192+
}, 0);
193+
}
192194
});
193195
}
194196

0 commit comments

Comments
 (0)