From 787c7e2d95691ba568021a6ba349e625ddaba8b8 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Sun, 9 Jul 2017 21:25:55 +0300 Subject: [PATCH] Fix 'View Quote' button label preview --- resources/views/accounts/templates_and_reminders.blade.php | 3 ++- resources/views/partials/email_templates.blade.php | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/resources/views/accounts/templates_and_reminders.blade.php b/resources/views/accounts/templates_and_reminders.blade.php index 7c27c381ff..84770e697c 100644 --- a/resources/views/accounts/templates_and_reminders.blade.php +++ b/resources/views/accounts/templates_and_reminders.blade.php @@ -161,7 +161,8 @@ var idName = '#email_' + stringType + '_' + entityType; var value = $(idName).val(); var previewName = '#' + entityType + '_' + stringType + '_preview'; - $(previewName).html(renderEmailTemplate(value)); + var isQuote = entityType == "{{ ENTITY_QUOTE }}"; + $(previewName).html(renderEmailTemplate(value, false, isQuote)); } } } diff --git a/resources/views/partials/email_templates.blade.php b/resources/views/partials/email_templates.blade.php index 206c69a652..5278e6742d 100644 --- a/resources/views/partials/email_templates.blade.php +++ b/resources/views/partials/email_templates.blade.php @@ -1,6 +1,6 @@