1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-09 20:52:56 +01:00

Fix initial load of templates and reminders page

This commit is contained in:
Hillel Coren 2016-08-18 12:24:26 +03:00
parent 3a7d21a0b0
commit 9060d901a7
2 changed files with 6 additions and 4 deletions

View File

@ -14,7 +14,7 @@
Former::input('num_days_' . $field)
->addClass('enable-' . $field)
->style('float:left;width:20%')
->raw() .
->raw() .
Former::select('direction_' . $field)
->addOption(trans('texts.days_before'), REMINDER_DIRECTION_BEFORE)
->addOption(trans('texts.days_after'), REMINDER_DIRECTION_AFTER)
@ -64,10 +64,10 @@
</div>
<p>&nbsp;<p/>
<div class="row">
<div class="col-md-10">
<div class="col-md-10 show-when-ready" style="display:none">
@include('partials/quill_toolbar', ['name' => $field])
</div>
<div class="col-md-2" style="padding-top:10px">
<div class="col-md-2 pull-right" style="padding-top:10px">
{!! Button::primary(trans('texts.preview'))->withAttributes(['onclick' => 'serverPreview("'.$field.'")'])->small() !!}
</div>
</div>
@ -107,4 +107,4 @@
</script>
</script>

View File

@ -216,6 +216,8 @@
enableReminder(i);
}
$('.show-when-ready').show();
refreshPreview();
});