+ event_cb(event,'click');
+ });
+ // click and long click events
+ $('.longclickbtn').mouseup(function(event) {
+ clearTimeout(ui.touchtimer);
+ if(!ui.longtouch) {
+ event_cb(event,'click');
+ ui.longclick($(this).attr('data-id'),false);
+ }
+ return false;
+ });
+ $('.longclickbtn').mousedown(function(event) {
+ ui.longtouch=false;
+ ui.touchtimer=setTimeout(function() {
+ ui.longtouch=true;
+ var did=$(event.target).attr('data-id');
+ ui.longclick(Number(did),true);
+ event_cb(event,'longclick');
+ },500);
+ return false;