|
|
@ -170,11 +170,9 @@ function saveTemplate( data ) {
|
|
|
|
datatype: 'json',
|
|
|
|
datatype: 'json',
|
|
|
|
data: { template: svgString },
|
|
|
|
data: { template: svgString },
|
|
|
|
} ).done( function( jsonResponse ) {
|
|
|
|
} ).done( function( jsonResponse ) {
|
|
|
|
alert('Form!');
|
|
|
|
|
|
|
|
if(jsonResponse.aaData && jsonResponse.aaData.form){
|
|
|
|
if(jsonResponse.aaData && jsonResponse.aaData.form){
|
|
|
|
$('form[name=invoice_template]').loadJSON(jsonResponse.aaData.form);
|
|
|
|
$('form[name=invoice_template]').loadJSON(jsonResponse.aaData.form);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
alert('Refresh!');
|
|
|
|
|
|
|
|
refreshTemplateList( data.contract_id );
|
|
|
|
refreshTemplateList( data.contract_id );
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|