|
|
@@ -65,7 +65,8 @@ function initAdminLtePlugin() { |
|
|
|
}); |
|
|
|
$('form button[type="submit"]').on('click', function (e) { |
|
|
|
|
|
|
|
checkForm() |
|
|
|
checkForm(); |
|
|
|
log('ncihe') |
|
|
|
}) |
|
|
|
|
|
|
|
if ($('.select2, select.form-control').length) { |
|
|
@@ -124,6 +125,8 @@ function initAdminLtePlugin() { |
|
|
|
} |
|
|
|
$(picker).daterangepicker(options); |
|
|
|
$(picker).on('apply.daterangepicker', function (ev, pickerElm) { |
|
|
|
log($(picker).nextAll('.date-time-range-fields').find('.date-start')); |
|
|
|
log(pickerElm.startDate.format('YYYY-MM-DD HH:mm')); |
|
|
|
$(picker).nextAll('.date-time-range-fields').find('.date-start').val(pickerElm.startDate.format('YYYY-MM-DD HH:mm')); |
|
|
|
$(picker).nextAll('.date-time-range-fields').find('.date-end').val(pickerElm.endDate.format('YYYY-MM-DD HH:mm')); |
|
|
|
}); |
|
|
@@ -189,20 +192,6 @@ function setSelect2($select) { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
function checkForm() { |
|
|
|
$('form').addClass('form-sent'); |
|
|
|
//Panel vues js |
|
|
|
if ($('form').find('.panel').length) { |
|
|
|
$('form').find('.panel').each(function (i, panel) { |
|
|
|
if ($(panel).find(':invalid').length) { |
|
|
|
$('#nav-params').find('.nav-item:eq(' + i + ')').addClass('has-invalid'); |
|
|
|
} else { |
|
|
|
$('#nav-params').find('.nav-item:eq(' + i + ')').removeClass('has-invalid'); |
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function initBtnEditReminder(){ |