Email link Mobile fix
This commit is contained in:
parent
eaf4cba87d
commit
09995efb64
Binary file not shown.
@ -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': {
|
||||
|
Loading…
Reference in New Issue
Block a user