diff options
author | Björn Schießle <schiessle@owncloud.com> | 2012-12-17 13:34:17 +0100 |
---|---|---|
committer | Björn Schießle <schiessle@owncloud.com> | 2012-12-17 13:34:17 +0100 |
commit | a7bb4b128f39dfd194185e8d417eb7ade0658cae (patch) | |
tree | 6f1852ac0eb690930ec665b57f0862cc4b6d7f0b /apps/files_versions/js | |
parent | acc902a0b6453c6cb8deabf546e2fa87048f393f (diff) | |
download | nextcloud-server-a7bb4b128f39dfd194185e8d417eb7ade0658cae.tar.gz nextcloud-server-a7bb4b128f39dfd194185e8d417eb7ade0658cae.zip |
personal settings removed, there is no need to expire versions manually
Diffstat (limited to 'apps/files_versions/js')
-rw-r--r-- | apps/files_versions/js/settings-personal.js | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/apps/files_versions/js/settings-personal.js b/apps/files_versions/js/settings-personal.js deleted file mode 100644 index 1e6b036fdab..00000000000 --- a/apps/files_versions/js/settings-personal.js +++ /dev/null @@ -1,39 +0,0 @@ -// TODO: allow the button to be clicked only once - -$( document ).ready(function(){ - // - $( '#expireAllBtn' ).click( - - function( event ) { - - // Prevent page from reloading - event.preventDefault(); - - // Show loading gif - $('.expireAllLoading').show(); - - $.getJSON( - OC.filePath('files_versions','ajax','expireAll.php'), - function(result){ - if (result.status == 'success') { - $('.expireAllLoading').hide(); - $('#expireAllBtn').html('Expiration successful'); - } else { - - // Cancel loading - $('#expireAllBtn').html('Expiration failed'); - - // Show Dialog - OC.dialogs.alert( - 'Something went wrong, your files may not have been expired', - 'An error has occurred', - function(){ - $('#expireAllBtn').html(t('files_versions', 'Expire all versions')+'<img style="display: none;" class="loading" src="'+OC.filePath('core','img','loading.gif')+'" />'); - } - ); - } - } - ); - } - ); -});
\ No newline at end of file |