From 9060d901a7133353561afcdacaf0b4b7eb038e21 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Thu, 18 Aug 2016 12:24:26 +0300 Subject: [PATCH] Fix initial load of templates and reminders page --- resources/views/accounts/template.blade.php | 8 ++++---- .../views/accounts/templates_and_reminders.blade.php | 2 ++ 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/resources/views/accounts/template.blade.php b/resources/views/accounts/template.blade.php index 68279299f6..629b582d8e 100644 --- a/resources/views/accounts/template.blade.php +++ b/resources/views/accounts/template.blade.php @@ -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 @@

 

-
+ -
+
{!! Button::primary(trans('texts.preview'))->withAttributes(['onclick' => 'serverPreview("'.$field.'")'])->small() !!}
@@ -107,4 +107,4 @@ - \ No newline at end of file + diff --git a/resources/views/accounts/templates_and_reminders.blade.php b/resources/views/accounts/templates_and_reminders.blade.php index 60e86641e1..91b82c3598 100644 --- a/resources/views/accounts/templates_and_reminders.blade.php +++ b/resources/views/accounts/templates_and_reminders.blade.php @@ -216,6 +216,8 @@ enableReminder(i); } + $('.show-when-ready').show(); + refreshPreview(); });