From 174367338b7540bd00c2c09d3f09055bcb7c6318 Mon Sep 17 00:00:00 2001 From: Irina Peshinskaya Date: Wed, 26 Mar 2014 11:13:04 +0100 Subject: [PATCH] MT#5879 Save state before switch to jsson getting of template info --- share/templates/customer/invoice.tt | 65 +++++-------------- .../customer/invoice_template_list.tt | 2 +- 2 files changed, 19 insertions(+), 48 deletions(-) diff --git a/share/templates/customer/invoice.tt b/share/templates/customer/invoice.tt index a799d5af07..8c314bb14f 100644 --- a/share/templates/customer/invoice.tt +++ b/share/templates/customer/invoice.tt @@ -19,11 +19,11 @@
@@ -287,7 +258,7 @@ function saveTemplate( contract_id, tt_id ) { [% c.loc('Refresh Preview')%] @@ -303,7 +274,7 @@ function saveTemplate( contract_id, tt_id ) { tt_viewmode: 'raw', tt_sourcestate: '[%initial%]', contract_id: '[%contract.id%]', - tt_id: $('form[name=invoice_template] input[name=tt_id]').val() + tt_id: getTtIdVal(), });" width="550px" height="750px" style="border-width:0px;"> diff --git a/share/templates/customer/invoice_template_list.tt b/share/templates/customer/invoice_template_list.tt index 537ab220fb..df05f194cd 100644 --- a/share/templates/customer/invoice_template_list.tt +++ b/share/templates/customer/invoice_template_list.tt @@ -33,7 +33,7 @@ [% template.get_column('is_active') %] [% template.get_column('type') %] - =[%template.get_column('id')%]:[%- c.uri_for_action("/customer/invoice_template_delete", [contract.id, template.get_column('id')]) -%]= [%# template.get_column('name') %] + =[%- c.uri_for_action("/customer/invoice_template_delete", [contract.id, template.get_column('id')]) -%]= [%# template.get_column('name') %]