Skip to content

Commit

Permalink
Open modal with anchor links and gardening
Browse files Browse the repository at this point in the history
  • Loading branch information
Victor Castell committed Dec 13, 2018
1 parent f55e2e3 commit 28c130b
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions templates/jobs.html.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -132,4 +132,16 @@

</div>
</div>
<script>
$(document).ready(function () {
if (window.location.hash && $(window.location.hash).length) {
$(window.location.hash).modal('show');
}
$('.modal').on('show.bs.modal', function (e) {
if (typeof (e.relatedTarget) != "undefined") {
window.location.hash = $(e.relatedTarget).attr('href');
}
});
});
</script>
{{end}}

0 comments on commit 28c130b

Please sign in to comment.