fixed click several events...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2013-01-30 03:17:45 +04:00
parent 5486ebbadf
commit 9ab468a906
2 changed files with 17 additions and 9 deletions

View File

@ -6,7 +6,7 @@
[_] BUG: no drag threshold on excludedElements (TouchSwipe) [_] BUG: no drag threshold on excludedElements (TouchSwipe)
| stalled... | stalled...
[_] 78% general todo [_] 78% general todo
[_] add templates... [_] add in-page live templates...
| elements that will get generated content, like page numbers etc. | elements that will get generated content, like page numbers etc.
[_] BUG: initial load on android does not center on the correct page... [_] BUG: initial load on android does not center on the correct page...
[_] magazine loader and data format... [_] magazine loader and data format...

View File

@ -424,8 +424,10 @@ function setupBookmarkTouchZones(){
.attr({ .attr({
title: 'Toggle bookmark (B)' title: 'Toggle bookmark (B)'
}) })
.click(function(){ .swipe({
toggleBookmark($(e)) click: function(){
toggleBookmark($(e))
}
}) })
}) })
} }
@ -472,8 +474,10 @@ function toggleBookmark(n){
.attr({ .attr({
title: 'Toggle bookmark (B)' title: 'Toggle bookmark (B)'
}) })
.click(function(){ .swipe({
toggleBookmark(cur) click: function(){
toggleBookmark(cur)
}
}) })
$('.viewer').trigger('bookmarkAdded', n) $('.viewer').trigger('bookmarkAdded', n)
@ -526,8 +530,10 @@ function makeArticleIndicator(i, article, width){
width: width, width: width,
left: width*n left: width*n
}) })
.click(function(){ .swipe({
setCurrentPage(n) click: function(){
setCurrentPage(n)
}
}) })
return article return article
} }
@ -628,8 +634,10 @@ function makeBookmarkIndicator(n){
.attr({ .attr({
page: n page: n
}) })
.click(function(){ .swipe({
setCurrentPage(n) click: function(){
setCurrentPage(n)
}
}) })
return res return res