diff --git a/Mobile/Sketchy-1.1.zip b/Mobile/Sketchy-1.1.zip index 8d4ee88..043782d 100644 Binary files a/Mobile/Sketchy-1.1.zip and b/Mobile/Sketchy-1.1.zip differ diff --git a/Mobile/js/mobile.js b/Mobile/js/mobile.js index 84f1702..0af6f31 100644 --- a/Mobile/js/mobile.js +++ b/Mobile/js/mobile.js @@ -8,7 +8,7 @@ $('*').click(function(e) { e.preventDefault(); }) -$('a[href^="http"]').on('tap', function(e) { +$('a[href^="http"]').tap(function(e) { e.preventDefault(); var href = $(this).attr('href'); var view = new MozActivity({ @@ -20,6 +20,18 @@ $('a[href^="http"]').on('tap', function(e) { }) }) +$('a[href^="mailto"]').tap(function(e) { + e.preventDefault(); + var mail = /mailto:(.*)/.exec($(this).attr('href'))[1]; + var mail = new MozActivity({ + name: 'new', + data: { + type: 'mail', + url: mail + } + }) +}) + window.save = function() { switch(save.background) { case 'white': {