Visual fixes
This commit is contained in:
parent
49df2733f7
commit
5959ebf358
1 changed files with 1 additions and 14 deletions
|
@ -171,21 +171,15 @@ var key = false;
|
||||||
|
|
||||||
function setKey() {
|
function setKey() {
|
||||||
key = $(".deletePageButton").data('key');
|
key = $(".deletePageButton").data('key');
|
||||||
console.log(key);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
|
|
||||||
|
|
||||||
// Button for delete a page in the table
|
// Button for delete a page in the table
|
||||||
|
$(".select2-dropdown").css("z-index","1040");
|
||||||
|
|
||||||
|
|
||||||
// Event from button accept from the modal
|
// Event from button accept from the modal
|
||||||
$(".deletePageModalAcceptButton").on("click", function() {
|
$(".deletePageModalAcceptButton").on("click", function() {
|
||||||
console.log(key);
|
|
||||||
console.log(HTML_PATH_ADMIN_ROOT);
|
|
||||||
|
|
||||||
|
|
||||||
var form = jQuery('<form>', {
|
var form = jQuery('<form>', {
|
||||||
'action': HTML_PATH_ADMIN_ROOT+'edit-content/'+key,
|
'action': HTML_PATH_ADMIN_ROOT+'edit-content/'+key,
|
||||||
'method': 'post',
|
'method': 'post',
|
||||||
|
@ -208,10 +202,3 @@ $(document).ready(function() {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
||||||
<script>
|
|
||||||
// Open the tab defined in the URL
|
|
||||||
const anchor = window.location.hash;
|
|
||||||
$(`a[href="${anchor}"]`).tab('show');
|
|
||||||
</script>
|
|
Loading…
Add table
Reference in a new issue