From c6d91d7c8ffaed18d3a13e559d335d509e5d6d88 Mon Sep 17 00:00:00 2001 From: Irina Peshinskaya Date: Thu, 24 Apr 2014 10:30:12 +0300 Subject: [PATCH] MT#5879 Remove exrescent buttons. --- share/static/js/invoice_template.js | 6 ++-- .../templates/invoice/template_editor_form.tt | 33 ++++++++++--------- 2 files changed, 20 insertions(+), 19 deletions(-) diff --git a/share/static/js/invoice_template.js b/share/static/js/invoice_template.js index 2ae3d2cf55..430ae66d43 100644 --- a/share/static/js/invoice_template.js +++ b/share/static/js/invoice_template.js @@ -90,7 +90,7 @@ function fetchInvoiceTemplateData( data, noshowform ){ // $('#load_saved_control').css('visibility', 'visible' ); if( templatedata.aaData.form ){ $('form[name=template_editor]').loadJSON(templatedata.aaData.form); - $('#load_previewed_control').css('display', 'inline' ); + //$('#load_previewed_control').css('display', 'inline' ); $('#load_saved_control').css('display', 'inline' ); } if( !noshowform ){ @@ -101,7 +101,7 @@ function fetchInvoiceTemplateData( data, noshowform ){ } function clearTemplateForm(data){ $('#template_editor_form').css('visibility','hidden'); - $('#load_previewed_control').css('display', 'none' ); + //$('#load_previewed_control').css('display', 'none' ); $('#load_saved_control').css('display', 'none' ); if(!data){ data = {}; @@ -121,7 +121,7 @@ function savePreviewedAndShowParsed( data ){ // & show template //alert('savePreviewedAndShowParsed: httpResponse='+httpResponse+';'); setSvgStringToPreview( httpResponse, q, data ) - $('#load_previewed_control').css('display', 'inline' ); + //$('#load_previewed_control').css('display', 'inline' ); //refresh list after saving - there is nothin that can be cahnged in templates list after preview refresh //refreshAjaxList( 'template', data ); } ); diff --git a/share/templates/invoice/template_editor_form.tt b/share/templates/invoice/template_editor_form.tt index 382d78fdc0..306e4db2ff 100644 --- a/share/templates/invoice/template_editor_form.tt +++ b/share/templates/invoice/template_editor_form.tt @@ -20,6 +20,13 @@ function getTtIdVal(){ tt_id: getTtIdVal(), });void(0);">[% c.loc('Refresh Preview')%] + [% c.loc('Save template')%] -
- + + + +
- + [% c.loc('Previewed PDF')%] - + [%initial = 'default'%]