|
|
@ -37597,11 +37597,11 @@ $(document).on('turbolinks:load', function() {
|
|
|
|
});
|
|
|
|
});
|
|
|
|
// modal visited fire
|
|
|
|
// modal visited fire
|
|
|
|
$refuseModal.on('shown.bs.modal', function(){
|
|
|
|
$refuseModal.on('shown.bs.modal', function(){
|
|
|
|
$refuseModal.find('.modal-body input[name="reason"]').focus();
|
|
|
|
$refuseModal.find('.modal-body textarea[name="reason"]').focus();
|
|
|
|
});
|
|
|
|
});
|
|
|
|
$refuseModal.on('hide.bs.modal', function () {
|
|
|
|
$refuseModal.on('hide.bs.modal', function () {
|
|
|
|
$applyIdInput.val('');
|
|
|
|
$applyIdInput.val('');
|
|
|
|
$refuseModal.find('.modal-body input[name="reason"]').val('');
|
|
|
|
$refuseModal.find('.modal-body textarea[name="reason"]').val('');
|
|
|
|
$form.data('url', '');
|
|
|
|
$form.data('url', '');
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
@ -38804,6 +38804,13 @@ $(document).on('turbolinks:load', function(){
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$.ajaxSetup({
|
|
|
|
|
|
|
|
beforeSend: function(xhr) {
|
|
|
|
|
|
|
|
xhr.setRequestHeader('X-CSRF-Token', $('meta[name="csrf-token"]').attr('content'));
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
// ******** select2 global config ********
|
|
|
|
// ******** select2 global config ********
|
|
|
|
$.fn.select2.defaults.set('theme', 'bootstrap4');
|
|
|
|
$.fn.select2.defaults.set('theme', 'bootstrap4');
|
|
|
@ -38839,7 +38846,6 @@ $(document).on("turbolinks:before-cache", function () {
|
|
|
|
$('[data-toggle="tooltip"]').tooltip('hide');
|
|
|
|
$('[data-toggle="tooltip"]').tooltip('hide');
|
|
|
|
$('[data-toggle="popover"]').popover('hide');
|
|
|
|
$('[data-toggle="popover"]').popover('hide');
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
// var progressBar = new Turbolinks.ProgressBar();
|
|
|
|
// var progressBar = new Turbolinks.ProgressBar();
|
|
|
|
|
|
|
|
|
|
|
|
// $(document).on('ajax:send', function(event){
|
|
|
|
// $(document).on('ajax:send', function(event){
|