update app about
This commit is contained in:
+11
-15
@@ -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();
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user