From aa999012fdc137d59a52454b357da71e922f579a Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Wed, 9 Mar 2016 08:10:32 +0100 Subject: [PATCH] Moved to App.Utils.replaceTags() and fixed quoting issues. --- .../javascripts/app/models/text_module.coffee | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/app/assets/javascripts/app/models/text_module.coffee b/app/assets/javascripts/app/models/text_module.coffee index 9474b8ced..c5b7f4794 100644 --- a/app/assets/javascripts/app/models/text_module.coffee +++ b/app/assets/javascripts/app/models/text_module.coffee @@ -22,17 +22,18 @@ Create Text Modules to **spend less time writing responses**. TextModules can in Examples of snippets are: -* Hallo Frau #{@ticket.customer.lastname}, -* Hallo Herr #{@ticket.customer.lastname}, -* Hallo #{@ticket.customer.firstname}, +* Hallo Frau #{ticket.customer.lastname}, +* Hallo Herr #{ticket.customer.lastname}, +* Hallo #{ticket.customer.firstname}, +* My Name is #{user.firstname}, Of course you can also use multi line snippets. Available objects are: -* @ticket (e. g. @ticket.state, @ticket.group) -* @ticket.customer (e. g. @ticket.customer.firstname, @ticket.customer.lastname) -* @ticket.owner (e. g. @ticket.owner.firstname, @ticket.owner.lastname) -* @ticket.organization (e. g. @ticket.organization.name) +* ticket (e. g. ticket.state, ticket.group) +* ticket.customer (e. g. ticket.customer.firstname, ticket.customer.lastname) +* ticket.owner (e. g. ticket.owner.firstname, ticket.owner.lastname) +* ticket.organization (e. g. ticket.organization.name) ''' # coffeelint: enable=no_interpolation_in_single_quotes