update app about

This commit is contained in:
2026-02-13 12:43:57 +07:00
parent 3f3f74a5b4
commit a740bfb28c
2 changed files with 15 additions and 17 deletions
+11 -15
View File
@@ -54,21 +54,17 @@ var AboutJS = {
},
update_run: function(){
if ($('#file_online')){
if ($('#file_online').val()==1){
new Request.JSON({
url: this.PHP,
sendParam: ['data=proses_update','new_sha1','new_sha1'],
onSuccess: (adata) => {
if (adata.sukses==true) {
FoniaJS.showInfo('Aplikasi telah di Update.<br>Silakan refresh browser Anda!');
} else {
FoniaJS.showInfo('Aplikasi gagal di Update.');
}
}
}).send();
new Request.JSON({
url: this.PHP,
sendParam: ['data=proses_update','new_sha1','new_sha1'],
onSuccess: (adata) => {
if (adata.sukses==true) {
FoniaJS.showInfo('Aplikasi telah di Update.<br>Silakan refresh browser Anda!');
} else {
FoniaJS.showInfo('Aplikasi gagal di Update.');
}
console.log(adata.message);
}
return false;
}
}).send();
}
};