Merge branch 'no-history' into 'master'

Remove jquery.history.js reference

See merge request LCA2018/symposion_app!28
This commit is contained in:
James Polley 2017-09-16 12:27:11 +00:00
commit fa18ef68fb

View file

@ -188,28 +188,3 @@
</div>
{% endblock %}
{% block extra_script %}
{{ block.super }}
<script src="{{ STATIC_URL }}symposion/js/jquery.history.js"></script>
<script type="text/javascript">
$(function() {
var History = window.History;
$(window).bind("anchorchange", function() {
$(".nav-tabs a[href='" + location.hash + "']").click();
});
$('.nav-tabs a[data-toggle="tab"]').on('shown', function (e) {
if (History.enabled) {
History.pushState(null, null, $(e.target).attr("href"));
}
});
if (window.location.hash !== '') {
$('.nav-tabs a[href="' + window.location.hash + '"]').tab('show')
}
});
</script>
{% endblock %}