diff options
author | Lukas Reschke <lukas@owncloud.com> | 2016-03-04 13:56:13 +0100 |
---|---|---|
committer | Lukas Reschke <lukas@owncloud.com> | 2016-03-04 14:37:35 +0100 |
commit | e3a0a69c7375154b7205511e919363b709ca3831 (patch) | |
tree | 916ff010b45d25a122ef4878bc5b245178349dad /apps/updatenotification/js | |
parent | 8be6054e5ce8aeffd6e305317e57e2747f7909ea (diff) | |
download | nextcloud-server-e3a0a69c7375154b7205511e919363b709ca3831.tar.gz nextcloud-server-e3a0a69c7375154b7205511e919363b709ca3831.zip |
Add release channel selection back
Allows to select the release channels again and also shows the last check date
Diffstat (limited to 'apps/updatenotification/js')
-rw-r--r-- | apps/updatenotification/js/admin.js | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/apps/updatenotification/js/admin.js b/apps/updatenotification/js/admin.js index df021fe2e97..2fc8c9d99b1 100644 --- a/apps/updatenotification/js/admin.js +++ b/apps/updatenotification/js/admin.js @@ -15,7 +15,7 @@ */ var loginToken = ''; $(document).ready(function(){ - $('#oca_updatenotification').click(function() { + $('#oca_updatenotification_button').click(function() { // Load the new token $.ajax({ url: OC.generateUrl('/apps/updatenotification/credentials') @@ -39,4 +39,16 @@ $(document).ready(function(){ }); }); }); + $('#release-channel').change(function() { + var newChannel = $('#release-channel').find(":selected").val(); + $.post( + OC.generateUrl('/apps/updatenotification/channel'), + { + 'channel': newChannel + }, + function(data){ + OC.msg.finishedAction('#channel_save_msg', data); + } + ); + }); }); |