diff --git a/application/views/inspectionview.php b/application/views/inspectionview.php index 8a363a2..85dd50f 100644 --- a/application/views/inspectionview.php +++ b/application/views/inspectionview.php @@ -150,7 +150,7 @@
= $this->lang->line('inspection_report'); ?> (= $this->lang->line('greeklang'); ?>)
- + >Αποστολή με email en_filename_inspection != NULL) {?>= $this->lang->line('inspection_report'); ?> (= $this->lang->line('englishlang'); ?>)
@@ -390,7 +390,16 @@ }); - + +$('.emailsend').on('click', function (e) { + e.preventDefault(); + href = $(this).attr('href'); + return bootbox.confirm('Η έκθεση θα αποσταλεί με email στη διεύθυνση = $inspection->email_client ?>. Συμφωνείτε;', function(result) { + if (result) { + window.location = href + } + }); +}); function checkifexists(fld, len){