mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 05:02:36 +01:00
Adjustments to custom design UI
This commit is contained in:
parent
19e1140ccf
commit
ddba7c0652
@ -2260,7 +2260,7 @@ $LANG = array(
|
||||
'custom_design2' => 'Custom Design 2',
|
||||
'custom_design3' => 'Custom Design 3',
|
||||
'empty' => 'Empty',
|
||||
'select_design' => 'Select Design',
|
||||
'load_design' => 'Load Design',
|
||||
'accepted_card_logos' => 'Accepted Card Logos',
|
||||
|
||||
);
|
||||
|
@ -97,7 +97,10 @@
|
||||
|
||||
function onSelectChange()
|
||||
{
|
||||
var id = $('#invoice_design_id').val();
|
||||
var $select = $('#invoice_design_id');
|
||||
var id = $select.val();
|
||||
$select.val(null);
|
||||
|
||||
if (parseInt(id)) {
|
||||
var design = _.find(invoiceDesigns, function(design){ return design.id == id});
|
||||
customDesign = JSON.parse(design.javascript);
|
||||
@ -189,7 +192,7 @@
|
||||
|
||||
<div>
|
||||
{!! Former::select('invoice_design_id')
|
||||
->placeholder(trans('texts.select_design'))
|
||||
->placeholder(trans('texts.load_design'))
|
||||
->style('display:inline;width:180px')
|
||||
->fromQuery($invoiceDesigns, 'name', 'id')
|
||||
->onchange('onSelectChange()')
|
||||
|
Loading…
Reference in New Issue
Block a user