Improve organizer page and tabs

This commit is contained in:
Raphael Michel
2017-01-27 12:06:55 +01:00
parent ba455a3630
commit a3cd8d151d
3 changed files with 31 additions and 8 deletions

View File

@@ -84,7 +84,15 @@ $(function () {
$('.collapsible').collapse();
$('[data-toggle="tooltip"]').tooltip()
$('[data-toggle="tooltip"]').tooltip();
var url = document.location.toString();
if (url.match('#')) {
$('.nav-tabs a[href="#' + url.split('#')[1] + '"]').tab('show');
}
$('a[data-toggle="tab"]').on('click', function (e) {
window.location.hash = e.target.hash;
});
// Question editor
if ($("#answer-options").length) {