Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions View/Support/admin_ticket.ctp
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ $Support = new SupportController(); ?>
<?= $this->Html->script('admin/tinymce/tinymce.min.js') ?>
<script type="text/javascript">
tinymce.init({
selector: "textarea",
selector: "textarea#editor",
height: 300,
width: '100%',
language: 'fr_FR',
Expand Down Expand Up @@ -136,12 +136,10 @@ $Support = new SupportController(); ?>
</section>
<script>
$(document).ready(function () {
$('.avatar-client').one("load", function () {
$('.avatar-client').each(function () {
var pseudo = $(this).attr("data-pseudo");
var src = "<?= $this->Html->url('/'); ?>API/get_head_skin/" + pseudo + "/32";
$(this).attr("src", src);
}).each(function () {
if (this.complete) $(this).load();
});
AddTags("editor", "", "<br /><br /><hr>Cordialement,<br /><?= $user['pseudo']; ?>");
});
Expand All @@ -162,4 +160,4 @@ $Support = new SupportController(); ?>
} catch (err) {
}
}
</script>
</script>
2 changes: 1 addition & 1 deletion config.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "Support",
"author": "Eywek",
"version": "1.0.30",
"version": "1.0.31",
"admin_menus": {
"Support": {
"icon": "fas fa-ticket-alt",
Expand Down