Browse Source

handle abort error request material

pull/1/head
Wahyu Ramadhan 1 year ago
parent
commit
511ddcbcef
  1. 10
      edit-mode/function/expenseResource.js
  2. 18
      edit-mode/function/materialResource.js
  3. 10
      edit-mode/function/reportActivity.js

10
edit-mode/function/expenseResource.js

@ -131,7 +131,15 @@ $(document).ready(function () {
cache: false
}
});
// $('#required-date-req-expense').datepicker({
// format: 'dd-mm-yyyy', // Set the desired format
// autoclose: true // Close the datepicker when a date is selected
// });
//
// $('#required-date-plan-expense').datepicker({
// format: 'dd-mm-yyyy', // Set the desired format
// autoclose: true // Close the datepicker when a date is selected
// });
$("#form-assign-expense").on('submit', function (e) {
e.preventDefault();

18
edit-mode/function/materialResource.js

@ -164,13 +164,23 @@ $(document).ready(function () {
results: dataIntegrasiMaterial
};
}, error: function (jqXHR, textStatus, errorThrown) {
gantt.alert(`Status: ${textStatus}`);
gantt.alert(`Error thrown: ${errorThrown}`);
gantt.alert(`Error accessing URL: ${adwIntegrationUrl}/request-material/get-material-integration`);
if (textStatus != "abort") {
gantt.alert(`Status: ${textStatus}`);
gantt.alert(`Error thrown: ${errorThrown}`);
gantt.alert(`Error accessing URL: ${adwIntegrationUrl}/request-material/get-material-integration`);
}
}
}
});
// $('#required-date-req-material').datepicker({
// format: 'dd-mm-yyyy', // Set the desired format
// autoclose: true // Close the datepicker when a date is selected
// });
//
// $('#required-date-plan-material').datepicker({
// format: 'dd-mm-yyyy', // Set the desired format
// autoclose: true // Close the datepicker when a date is selected
// });
$("#form-assign-material").on('submit', function (e) {
e.preventDefault();

10
edit-mode/function/reportActivity.js

@ -62,7 +62,15 @@ $(document).ready(function () {
$('#ra_date_end_activity').prop('disabled', true);
}
});
// $('#ra_date_start_activity').datepicker({
// format: 'dd-mm-yyyy', // Set the desired format
// autoclose: true // Close the datepicker when a date is selected
// });
//
// $('#ra_date_end_activity').datepicker({
// format: 'dd-mm-yyyy', // Set the desired format
// autoclose: true // Close the datepicker when a date is selected
// });
$("#ra_date_end_activity").on("change", function () {
let valEnd = $(this).val()
let valStart = $('#ra_date_start_activity').val()

Loading…
Cancel
Save