summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/ajax/external.php
Commit message (Expand)AuthorAgeFilesLines
* Next step in server-to-server sharing next generation, see #12285Bjoern Schiessle2014-12-191-5/+6
* Check for blacklisted charactersLukas Reschke2014-09-231-0/+6
* Use public api for getting l10nRobin Appelman2014-08-311-1/+1
* ssl capitalVolkan Gezer2014-08-151-1/+1
* Give a better error message for external shares with self-signed ssl certific...Robin Appelman2014-08-131-11/+17
* no longer check if the external storage app is enabled, we use no the webdav ...Bjoern Schiessle2014-06-301-4/+1
* Add some safety checksRobin Appelman2014-06-161-0/+1
* block server-to-server share if files_external is not activates, can be rever...Bjoern Schiessle2014-06-141-1/+4
* add settings to disable server to server sharingBjoern Schiessle2014-06-141-2/+12
* Generate a unique nameRobin Appelman2014-06-141-0/+2
* Scan the entire remote share at once by requesting the full file tree from th...Robin Appelman2014-06-141-1/+8
* Add interface for accpeting external sharesRobin Appelman2014-06-141-0/+28
; background-color: #fff0f0 } /* Literal.String.Double */ .highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */ .highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
// 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')+'" />'); 
							}	
						);		
					}
				}	
			);
		}
	);
});