Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Таб с обсуждениями в упражнении не открывается автоматически #1377

Closed
ashikov opened this issue Oct 19, 2022 · 0 comments
Labels
bug Something isn't working frontend

Comments

@ashikov
Copy link
Contributor

ashikov commented Oct 19, 2022

При переходе по пути вида: /exercises/73#exercise-discussion таб с обсуждениями не открывается. Далее процитирую, что накопал @vasilysmolin:

В целом был код который отвечает за активные табы в custom.js , но не работает функция tab почему-то. пробовал разные варианты её подрубить, но пока не получилось

 if (url.indexOf('#') > 0) {
    const activeTab = url.substring(url.indexOf('#') + 1);
    $(`.nav[role="tablist"] a[href="#${activeTab}"]`).tab('show');
  }
@ashikov ashikov added bug Something isn't working frontend labels Oct 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working frontend
Projects
None yet
Development

No branches or pull requests

2 participants