mirror of
				https://github.com/flynx/PortableMag.git
				synced 2025-10-31 20:10:13 +00:00 
			
		
		
		
	added reset button...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
		
							parent
							
								
									9ab468a906
								
							
						
					
					
						commit
						aa2d9666d6
					
				
							
								
								
									
										15
									
								
								index.html
									
									
									
									
									
								
							
							
						
						
									
										15
									
								
								index.html
									
									
									
									
									
								
							| @ -453,7 +453,7 @@ $(document).ready(function(){ | |||||||
| 						} | 						} | ||||||
| 						.settings button, .settings input { | 						.settings button, .settings input { | ||||||
| 							background: white; | 							background: white; | ||||||
| 							height: 20px; | 							height: 25px; | ||||||
| 						} | 						} | ||||||
| 						.settings input { | 						.settings input { | ||||||
| 							border: solid silver 1px; | 							border: solid silver 1px; | ||||||
| @ -466,6 +466,11 @@ $(document).ready(function(){ | |||||||
| 							padding-left: 15px; | 							padding-left: 15px; | ||||||
| 							padding-right: 15px; | 							padding-right: 15px; | ||||||
| 						} | 						} | ||||||
|  | 						#RESET { | ||||||
|  | 							background: red; | ||||||
|  | 							color: white; | ||||||
|  | 							font-weight: bold; | ||||||
|  | 						} | ||||||
| 					</style> | 					</style> | ||||||
| 
 | 
 | ||||||
| 					<table class="settings" width="100%"> | 					<table class="settings" width="100%"> | ||||||
| @ -519,6 +524,14 @@ $(document).ready(function(){ | |||||||
| 								<button id="USE_REAL_PAGE_SIZES" onclick="toggleSetting(this)"></button> | 								<button id="USE_REAL_PAGE_SIZES" onclick="toggleSetting(this)"></button> | ||||||
| 							</td> | 							</td> | ||||||
| 						</tr> | 						</tr> | ||||||
|  | 						<tr> | ||||||
|  | 							<td> | ||||||
|  | 								Reset stored data: | ||||||
|  | 							</td> | ||||||
|  | 							<td> | ||||||
|  | 								<button id="RESET" onclick="confirm('You really want to reset?')&&resetState()">Reset</button> | ||||||
|  | 							</td> | ||||||
|  | 						</tr> | ||||||
| 					<table/> | 					<table/> | ||||||
| 
 | 
 | ||||||
| 					<hr noshade color="silver"> | 					<hr noshade color="silver"> | ||||||
|  | |||||||
| @ -779,6 +779,9 @@ function saveStorageState(){ | |||||||
| 	$.jStorage.set('current_page', getPageNumber()) | 	$.jStorage.set('current_page', getPageNumber()) | ||||||
| 	$.jStorage.set('bookmarks', buildBookmarkList()) | 	$.jStorage.set('bookmarks', buildBookmarkList()) | ||||||
| } | } | ||||||
|  | function resetStorageState(){ | ||||||
|  | 	$.jStorage.flush() | ||||||
|  | } | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| // JSON format state managers...
 | // JSON format state managers...
 | ||||||
| @ -809,6 +812,11 @@ function saveState(){ | |||||||
| 	saveStorageState() | 	saveStorageState() | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  | function resetState(){ | ||||||
|  | 	resetStorageState() | ||||||
|  | 	loadState() | ||||||
|  | } | ||||||
|  | 
 | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| /********************************************************** editor ***/ | /********************************************************** editor ***/ | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user