Skip to content

Commit

Permalink
fix: pagelist id + template showing up in asm select
Browse files Browse the repository at this point in the history
  • Loading branch information
BernhardBaumrock committed Mar 11, 2024
1 parent d1051e3 commit 291677b
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tweaks/PageListShowIds.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,16 @@ public function addStyle(HookEvent $event)
</style></head>",
$event->return
);
$event->return = str_replace(
"</body>",
"<script>
$(document).ajaxComplete(function() {
$('.Inputfield .PageListId').remove();
});
</script>
</body>",
$event->return
);
}

public function hookPageLabel(HookEvent $event)
Expand Down
10 changes: 10 additions & 0 deletions tweaks/PageListShowTemplate.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,16 @@ public function addStyle(HookEvent $event)
</style></head>",
$event->return
);
$event->return = str_replace(
"</body>",
"<script>
$(document).ajaxComplete(function() {
$('.Inputfield .PageListTemplate').remove();
});
</script>
</body>",
$event->return
);
}

public function hookPageLabel(HookEvent $event)
Expand Down

0 comments on commit 291677b

Please sign in to comment.