From df232e00243971f37b2e2323e51baa51ccb1d2f8 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Wed, 29 Jun 2016 16:38:07 +0200 Subject: [PATCH] Prevent spamming of div data-signature elements by surrounding element with an neutral element. --- .../javascripts/app/controllers/agent_ticket_create.coffee | 2 +- .../javascripts/app/controllers/ticket_zoom/article_new.coffee | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/app/controllers/agent_ticket_create.coffee b/app/assets/javascripts/app/controllers/agent_ticket_create.coffee index edc998281..641586170 100644 --- a/app/assets/javascripts/app/controllers/agent_ticket_create.coffee +++ b/app/assets/javascripts/app/controllers/agent_ticket_create.coffee @@ -246,7 +246,7 @@ class App.TicketCreate extends App.Controller if !App.Utils.lastLineEmpty(body) body = body + '
' - body = body + "
#{signatureFinished}
" + body = body + "
#{signatureFinished}
" @$('[data-name="body"]').html(body) diff --git a/app/assets/javascripts/app/controllers/ticket_zoom/article_new.coffee b/app/assets/javascripts/app/controllers/ticket_zoom/article_new.coffee index 236387adb..a6628a37f 100644 --- a/app/assets/javascripts/app/controllers/ticket_zoom/article_new.coffee +++ b/app/assets/javascripts/app/controllers/ticket_zoom/article_new.coffee @@ -440,7 +440,7 @@ class App.TicketZoomArticleNew extends App.Controller if App.Utils.signatureCheck(body, signatureFinished) if !App.Utils.lastLineEmpty(body) body = body + '
' - body = body + "
#{signatureFinished}
" + body = body + "
#{signatureFinished}
" @$('[data-name=body]').html(body) # remove old signature