mirror of
				https://github.com/slawkens/myaac.git
				synced 2025-11-04 09:46:23 +01:00 
			
		
		
		
	-Npc Lib added -Admin Dataloader updated to load NPC names into a cached array. -Spinner Updated to a loading button.
		
			
				
	
	
		
			31 lines
		
	
	
		
			922 B
		
	
	
	
		
			Twig
		
	
	
	
	
	
			
		
		
	
	
			31 lines
		
	
	
		
			922 B
		
	
	
	
		
			Twig
		
	
	
	
	
	
<p>Clicking the button will reload server data (items, monsters, npcs, spells, towns, weapons).</p>
 | 
						|
<p>It may take up to few minutes.</p>
 | 
						|
<button id="reload_button" class="btn btn-info"><i class="fas fa-update"></i>Reload</button>
 | 
						|
 | 
						|
<button id="spinner" class="btn btn-info" type="button" disabled>
 | 
						|
	<span class="spinner-border spinner-border-sm" role="status" aria-hidden="true"></span>
 | 
						|
	Loading...
 | 
						|
</button>
 | 
						|
<div style="height: 20px"></div>
 | 
						|
 | 
						|
<div id="messages"></div>
 | 
						|
 | 
						|
<style>
 | 
						|
	#spinner {
 | 
						|
		display: none;
 | 
						|
	}
 | 
						|
</style>
 | 
						|
<script>
 | 
						|
	$(function () {
 | 
						|
		$('#reload_button').on('click', function (e) {
 | 
						|
			$('#spinner').show();
 | 
						|
			$('#reload_button').hide();
 | 
						|
 | 
						|
			$('[id^=success]').remove();
 | 
						|
			$('#messages').append('<div id="success-1"></div>');
 | 
						|
 | 
						|
			performInstall('{{ constant('ADMIN_URL') }}tools/reload_data.php');
 | 
						|
		});
 | 
						|
	})
 | 
						|
</script>
 | 
						|
<script type="text/javascript" src="{{ constant('BASE_URL') }}tools/installer.js"></script> |