From 84ae30e60a881adbb65c38034afbb9026cb41377 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Sun, 2 Feb 2014 22:16:31 +0200 Subject: [PATCH] bug fixes --- app/views/invoices/edit.blade.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/views/invoices/edit.blade.php b/app/views/invoices/edit.blade.php index 5394a87a40..d805ee3d8a 100755 --- a/app/views/invoices/edit.blade.php +++ b/app/views/invoices/edit.blade.php @@ -611,10 +611,15 @@ } function onEmailClick() { + @if (Auth::user()->confirmed) if (confirm('Are you sure you want to email this invoice?')) { $('#action').val('email'); $('.main_form').submit(); } + @else + $('#action').val('email'); + $('.main_form').submit(); + @endif } function onSaveClick() {