Upload Files Booking, Mails, Attachments,
This commit is contained in:
parent
5daea268f7
commit
68b9d1ff88
92 changed files with 2837 additions and 1778 deletions
|
|
@ -9,6 +9,7 @@
|
|||
<div class="modal-body">
|
||||
|
||||
@include('customer.mail.modal-show-mail-inner', ['customer_mail' => $customer_mail])
|
||||
|
||||
@if($customer_mail->customer_mail)
|
||||
@include('customer.mail.modal-show-mail-inner', ['customer_mail' => $customer_mail->customer_mail])
|
||||
@endif
|
||||
|
|
@ -20,6 +21,26 @@
|
|||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
function change_dir_country_select(_form){
|
||||
if(_form.find('.customer_mail_dir').val() == 1){
|
||||
_form.find('.customer_mail_country').prop('disabled', false);
|
||||
}else{
|
||||
_form.find('.customer_mail_country').prop('disabled', true);
|
||||
_form.find('.customer_mail_country').val(0);
|
||||
}
|
||||
}
|
||||
|
||||
$(document).ready(function() {
|
||||
$('form.move-mail-form').each(function () {
|
||||
var _form = $(this);
|
||||
$(this).find('.customer_mail_dir').on('change', function () {
|
||||
change_dir_country_select(_form);
|
||||
_form.find('.btn-default').removeClass('btn-default').addClass('btn-primary');
|
||||
});
|
||||
$(this).find('.customer_mail_country').on('change', function () {
|
||||
_form.find('.btn-default').removeClass('btn-default').addClass('btn-primary');
|
||||
});
|
||||
change_dir_country_select(_form);
|
||||
});
|
||||
});
|
||||
</script>
|
||||
Loading…
Add table
Add a link
Reference in a new issue