|
@@ -51,13 +51,16 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
-<div class="card p-2 rounded border-0" style="background-color: #ffffff; color: #141639c4; height: 80vh;">
|
|
|
+<div class="card p-2 rounded border-0 wait" style="background-color: #ffffff; color: #141639c4; height: 80vh;">
|
|
|
<div id="load_data"></div>
|
|
|
</div>
|
|
|
@endsection
|
|
|
@push('js')
|
|
|
<script>
|
|
|
+
|
|
|
$(function(){
|
|
|
+ get_data();
|
|
|
+
|
|
|
$(".submitted_date").flatpickr({
|
|
|
dateFormat: 'd-m-Y',
|
|
|
mode: "range"
|
|
@@ -76,6 +79,7 @@ $(function(){
|
|
|
});
|
|
|
|
|
|
function get_data(){
|
|
|
+ $('.wait').waitMe({effect : 'facebook', text : 'Please wait...'});
|
|
|
var base = '{{url('/')}}';
|
|
|
var apply_ref = $('#apply_ref').val();
|
|
|
var proposal_status = $('#proposal_status').find('option:selected').val();
|
|
@@ -86,16 +90,23 @@ $(function(){
|
|
|
method: 'GET',
|
|
|
url: base+'/supervisor/application-list/search',
|
|
|
data: {'apply_ref' : apply_ref,'proposal_status' : proposal_status,'submitted_date' : submitted_date,'preffered_start_date' : preffered_start_date},
|
|
|
+
|
|
|
success: function(response){
|
|
|
+ $('.wait').waitMe("hide");
|
|
|
$('#load_data').html(response);
|
|
|
},
|
|
|
error: function(jqXHR, textStatus, errorThrown) {
|
|
|
+ $('.wait').waitMe("hide");
|
|
|
console.log(JSON.stringify(jqXHR));
|
|
|
console.log("AJAX error: " + textStatus + ' : ' + errorThrown);
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
|
|
|
+ $('.wait-me').on('click', function(){
|
|
|
+ $('.wait').waitMe({effect : 'facebook', text : 'Please wait...'});
|
|
|
+ });
|
|
|
+
|
|
|
});
|
|
|
</script>
|
|
|
@endpush
|