diff --git a/View/Support/admin_ticket.ctp b/View/Support/admin_ticket.ctp index c363270..9e7b313 100644 --- a/View/Support/admin_ticket.ctp +++ b/View/Support/admin_ticket.ctp @@ -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', @@ -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']; ?>"); }); @@ -162,4 +160,4 @@ $Support = new SupportController(); ?> } catch (err) { } } -</script> \ No newline at end of file +</script> diff --git a/config.json b/config.json index dfe6a10..09773ab 100755 --- a/config.json +++ b/config.json @@ -1,7 +1,7 @@ { "name": "Support", "author": "Eywek", - "version": "1.0.30", + "version": "1.0.31", "admin_menus": { "Support": { "icon": "fas fa-ticket-alt",