mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-03 19:16:51 +00:00
Simplify update check.
This commit is contained in:
14
public/v1/js/ff/admin/update/index.js
vendored
14
public/v1/js/ff/admin/update/index.js
vendored
@@ -25,18 +25,4 @@ $(function () {
|
||||
|
||||
// Enable update button.
|
||||
|
||||
$('#update').click(checkUpdate);
|
||||
});
|
||||
|
||||
function checkUpdate() {
|
||||
|
||||
// do post update check:
|
||||
$.post(updateCheckUri).done(function (data) {
|
||||
alert(data.result);
|
||||
}).fail(function () {
|
||||
alert('Error while checking.');
|
||||
});
|
||||
|
||||
|
||||
return false;
|
||||
}
|
Reference in New Issue
Block a user