open link in new tab

This commit is contained in:
j 2016-01-16 17:35:35 +05:30
parent bceb2ccbe1
commit 84d0a87a5c
2 changed files with 2 additions and 5 deletions

View file

@ -59,6 +59,7 @@ oml.ui.appDialog = function() {
var $html = $('<div>').html(html), var $html = $('<div>').html(html),
section = $html.find('#' + id).html(); section = $html.find('#' + id).html();
$content.html('<h1><b>' + title + '</b></h1>' + section); $content.html('<h1><b>' + title + '</b></h1>' + section);
oml.createLinks($content);
}); });
} }
$('<div>') $('<div>')

View file

@ -894,11 +894,7 @@ oml.hasDialogOrScreen = function() {
}; };
oml.openLink = function(url) { oml.openLink = function(url) {
if (Ox.startsWith(url, 'mailto:')) {
window.open(url); window.open(url);
} else {
window.open('/url=' + encodeURIComponent(url), '_blank');
}
}; };
oml.reloadLists = function() { oml.reloadLists = function() {