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)
| stalled...
[_] 78% general todo
[_] add templates...
[_] add in-page live templates...
| elements that will get generated content, like page numbers etc.
[_] BUG: initial load on android does not center on the correct page...
[_] magazine loader and data format...

View File

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