add dashboard, fix get data scraping, fix table
This commit is contained in:
23
resources/js/settings/syncronize/syncronize.js
Normal file
23
resources/js/settings/syncronize/syncronize.js
Normal file
@@ -0,0 +1,23 @@
|
||||
class SyncronizeTask {
|
||||
init(){
|
||||
this.onSyncSubmit();
|
||||
}
|
||||
onSyncSubmit(){
|
||||
const form = document.getElementById("sync-form");
|
||||
if(form){
|
||||
form.addEventListener("submit", function (event) {
|
||||
event.preventDefault(); // Prevent the default form submission
|
||||
|
||||
const button = document.getElementById("btn-sync-submit");
|
||||
if (button) {
|
||||
button.disabled = true;
|
||||
button.innerText = "Processing...";
|
||||
}
|
||||
form.submit();
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
document.addEventListener('DOMContentLoaded', function (e) {
|
||||
new SyncronizeTask().init();
|
||||
});
|
||||
Reference in New Issue
Block a user