changed to mousedown
This commit is contained in:
parent
f66e8b0906
commit
c2501d96b3
@ -1061,11 +1061,19 @@ $(function() {
|
|||||||
$('.meal-item-content').live({
|
$('.meal-item-content').live({
|
||||||
mousedown: function() {
|
mousedown: function() {
|
||||||
$(this).addClass('meal-item-down');
|
$(this).addClass('meal-item-down');
|
||||||
|
var self = $(this);
|
||||||
|
setTimeout(function() {
|
||||||
|
App.loadRestaurant(self.closest('.meal-item').attr('data-permalink'));
|
||||||
|
},100);
|
||||||
},
|
},
|
||||||
touchstart: function() {
|
touchstart: function() {
|
||||||
if (navigator.userAgent.toLowerCase().indexOf('android') > -1) {
|
if (navigator.userAgent.toLowerCase().indexOf('android') > -1) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
var self = $(this);
|
||||||
|
setTimeout(function() {
|
||||||
|
App.loadRestaurant(self.closest('.meal-item').attr('data-permalink'));
|
||||||
|
},100);
|
||||||
$(this).addClass('meal-item-down');
|
$(this).addClass('meal-item-down');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@ -1082,7 +1090,7 @@ $(function() {
|
|||||||
});
|
});
|
||||||
|
|
||||||
$('.meal-item').live('click',function() {
|
$('.meal-item').live('click',function() {
|
||||||
App.loadRestaurant($(this).attr('data-permalink'));
|
//App.loadRestaurant($(this).attr('data-permalink'));
|
||||||
});
|
});
|
||||||
|
|
||||||
$('.resturant-dish-container a').live('click',function() {
|
$('.resturant-dish-container a').live('click',function() {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user