File manager - Edit - /home/autoph/public_html/projects/tickets-autohub/public/js/authentication/vehicle/create.js
Back
(function(e){ "use strict"; function delay(callback, ms) { var timer = 0; return function () { var context = this, args = arguments; clearTimeout(timer); timer = setTimeout(function () { callback.apply(context, args); }, ms || 0); }; } $(function(){ $('#v_pprice').inputmask({ mask: "99,999,999.99", placeholder: "_", numericInput: true, radixPoint: "." }); const tabList = $('#navTabs'); const tabs = tabList.find('.nav-link'); const prevButton = $('#prevTab'); const nextButton = $('#nextTab'); let currentTabIndex = 0; prevButton.click(function () { currentTabIndex = Math.max(currentTabIndex - 1, 0); tabs.eq(currentTabIndex).tab('show'); }); nextButton.click(function () { currentTabIndex = Math.min(currentTabIndex + 1, tabs.length - 1); tabs.eq(currentTabIndex).tab('show'); }); $('#submitVehicleInformation').on('click', function(e){ let url; var id = $('[name="_idShow"]').val(); if(id){ url = "/ticket/carplus/update"; } else { url = "/ticket/carplus/store"; } e.preventDefault(); var formData = new FormData(); $.ajax({ type: "POST", url: url, dataType: 'json', data: $('#vehicleInformation').serialize(), // processData: false, // contentType: false, headers: { 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content') }, success: function(result){ swal.fire({ 'icon':"success", 'text':result.message }); window.location.href = "/ticket/carplus"; // window.location.reload(); }, error: function(error){ if(error.responseJSON.errors){ $.each(error.responseJSON.errors, function(key,value){ toastRWithTime(value[0],"error"); }); } else { toastRWithTime(error.responseJSON.error,"error"); } } }); }); }); })();
| ver. 1.4 |
.
| PHP 8.1.32 | Generation time: 0.01 |
proxy
|
phpinfo
|
Settings