mirror of
				https://github.com/flynx/PortableMag.git
				synced 2025-11-03 21:40:17 +00:00 
			
		
		
		
	removed fixes for problems that do not exist...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
		
							parent
							
								
									76323cb620
								
							
						
					
					
						commit
						3ac18dfecc
					
				@ -10,8 +10,6 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
var DEBUG = true
 | 
					var DEBUG = true
 | 
				
			||||||
 | 
					
 | 
				
			||||||
var USE_URLS = true
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
/* this is needed only for live resize... */
 | 
					/* this is needed only for live resize... */
 | 
				
			||||||
var PAGES_VISIBLE = 1
 | 
					var PAGES_VISIBLE = 1
 | 
				
			||||||
var PAGES_IN_RIBBON = 6
 | 
					var PAGES_IN_RIBBON = 6
 | 
				
			||||||
@ -480,7 +478,7 @@ function saveStorageState(){
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
// generic state managers...
 | 
					// generic state managers...
 | 
				
			||||||
function loadState(){
 | 
					function loadState(){
 | 
				
			||||||
	var n = USE_URLS ? loadURLState() : null
 | 
						var n = loadURLState()
 | 
				
			||||||
	if(n != null){
 | 
						if(n != null){
 | 
				
			||||||
		setCurrentPage(n)
 | 
							setCurrentPage(n)
 | 
				
			||||||
	} else {
 | 
						} else {
 | 
				
			||||||
@ -488,7 +486,7 @@ function loadState(){
 | 
				
			|||||||
	}
 | 
						}
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
function saveState(){
 | 
					function saveState(){
 | 
				
			||||||
	USE_URLS ? saveURLState() : null 
 | 
						saveURLState()
 | 
				
			||||||
	saveStorageState()
 | 
						saveStorageState()
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -526,12 +524,9 @@ $(document).ready(function(){
 | 
				
			|||||||
		.resize(function() {
 | 
							.resize(function() {
 | 
				
			||||||
			fitNPages(PAGES_VISIBLE)
 | 
								fitNPages(PAGES_VISIBLE)
 | 
				
			||||||
		})
 | 
							})
 | 
				
			||||||
	if(USE_URLS){
 | 
					 | 
				
			||||||
		$(window)
 | 
					 | 
				
			||||||
		.bind('hashchange', function(){
 | 
							.bind('hashchange', function(){
 | 
				
			||||||
			setCurrentPage(loadURLState())
 | 
								setCurrentPage(loadURLState())
 | 
				
			||||||
		})
 | 
							})
 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
	$('.viewer')
 | 
						$('.viewer')
 | 
				
			||||||
		.swipe({
 | 
							.swipe({
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user