removed fixes for problems that do not exist...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2013-01-23 00:46:30 +04:00
parent 76323cb620
commit 3ac18dfecc

View File

@ -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){ .bind('hashchange', function(){
$(window) setCurrentPage(loadURLState())
.bind('hashchange', function(){ })
setCurrentPage(loadURLState())
})
}
$('.viewer') $('.viewer')
.swipe({ .swipe({