Skip to content
This repository has been archived by the owner on Jan 25, 2018. It is now read-only.

Commit

Permalink
Let the pad work on B2G desktop
Browse files Browse the repository at this point in the history
  • Loading branch information
kumar303 committed Nov 2, 2012
1 parent 7e53696 commit f65529b
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions media/js/pin/pad.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
if (hasTouch) {
//if (hasTouch) {
// Temporarily turning this on so it works on B2G desktop.
if (true) {
var pad = $('.pad').eq(0);
pad.show();
// document.getElementsByTagName('header')[0].innerHTML = 'butt';

pad.on('touchstart', 'a', function(e) {
var touchstart = (hasTouch) ? 'touchstart': 'click';
pad.on(touchstart, 'a', function(e) {
var btn = $(this).data('val');
if (btn === undefined) return;
switch (btn.toString()) {
Expand All @@ -27,4 +30,4 @@ if (hasTouch) {
break;
}
});
}
}

0 comments on commit f65529b

Please sign in to comment.