diff options
author | Joas Schilling <coding@schilljs.com> | 2016-09-08 10:59:14 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2016-09-08 10:59:14 +0200 |
commit | 202ae42506e9bbb167889735b2c56ccebace594b (patch) | |
tree | 7374b08be73cddf4382e72c1debce42c255ad60a /apps/updatenotification/js/admin.js | |
parent | ff691b4d8a26c08dcf9555c70a071cdebd1266e6 (diff) | |
download | nextcloud-server-202ae42506e9bbb167889735b2c56ccebace594b.tar.gz nextcloud-server-202ae42506e9bbb167889735b2c56ccebace594b.zip |
Show an update button instead of the updater
Diffstat (limited to 'apps/updatenotification/js/admin.js')
-rw-r--r-- | apps/updatenotification/js/admin.js | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/apps/updatenotification/js/admin.js b/apps/updatenotification/js/admin.js index 3ca45a191d4..e60e77ab89a 100644 --- a/apps/updatenotification/js/admin.js +++ b/apps/updatenotification/js/admin.js @@ -13,33 +13,7 @@ /** * Creates a new authentication token and loads the updater URL */ -var loginToken = ''; $(document).ready(function(){ - $('#oca_updatenotification_button').click(function() { - // Load the new token - $.ajax({ - url: OC.generateUrl('/apps/updatenotification/credentials') - }).success(function(data) { - loginToken = data; - $.ajax({ - url: OC.webroot+'/updater/', - headers: { - 'X-Updater-Auth': loginToken - }, - method: 'POST', - success: function(data){ - if(data !== 'false') { - var body = $('body'); - $('head').remove(); - body.html(data); - body.removeAttr('id'); - body.attr('id', 'body-settings'); - } - } - }); - }); - }); - $('#release-channel').change(function() { var newChannel = $('#release-channel').find(":selected").val(); |