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),
section = $html.find('#' + id).html();
$content.html('<h1><b>' + title + '</b></h1>' + section);
oml.createLinks($content);
});
}
$('<div>')

View File

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