Update content.php

This commit is contained in:
Guillaume 2019-01-27 00:22:22 +01:00 committed by GitHub
parent ba712d59dd
commit 5ffc407682
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -252,9 +252,9 @@ function table($type) {
)); ));
?> ?>
<script> <script>
var hash = '#pages';
$(document).ready(function() { $(document).ready(function() {
var key = false; var key = false;
var hash = '#pages';
// Button for delete a page in the table // Button for delete a page in the table
$(".deletePageButton").on("click", function() { $(".deletePageButton").on("click", function() {
@ -290,6 +290,6 @@ $(document).ready(function() {
}); });
// Open the tab defined in the URL // Open the tab defined in the URL
$('a[href="'+ $(location).attr('hash').slice(0,-1) +'"]').tab('show'); $('a[href="'+ $(location).attr('hash').slice(0,-1) +'"]').click();
}); });
</script> </script>