diff options
author | Jan-Christoph Borchardt <hey@jancborchardt.net> | 2013-01-15 20:40:38 +0700 |
---|---|---|
committer | Jan-Christoph Borchardt <hey@jancborchardt.net> | 2013-01-15 20:40:38 +0700 |
commit | 6182b1353bd53bb6bdc5b06248d9742e97d2e249 (patch) | |
tree | b154b88d910c57d17b07ce482cbeb98cb791a106 /apps/files_versions/js/settings-personal.js | |
parent | 74b4fefda87feeaf51633ea7794ac498f7dce892 (diff) | |
parent | bb9cc227c2583adc6b51a1f6d75a9fc8333836b9 (diff) | |
download | nextcloud-server-6182b1353bd53bb6bdc5b06248d9742e97d2e249.tar.gz nextcloud-server-6182b1353bd53bb6bdc5b06248d9742e97d2e249.zip |
merge master into navigation
Diffstat (limited to 'apps/files_versions/js/settings-personal.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 |