From 84d0a87a5c6e238257901a478d9fa19f228e2138 Mon Sep 17 00:00:00 2001 From: j Date: Sat, 16 Jan 2016 17:35:35 +0530 Subject: [PATCH] open link in new tab --- static/js/appDialog.js | 1 + static/js/utils.js | 6 +----- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/static/js/appDialog.js b/static/js/appDialog.js index 3ed85f1..a110046 100644 --- a/static/js/appDialog.js +++ b/static/js/appDialog.js @@ -59,6 +59,7 @@ oml.ui.appDialog = function() { var $html = $('
').html(html), section = $html.find('#' + id).html(); $content.html('

' + title + '

' + section); + oml.createLinks($content); }); } $('
') diff --git a/static/js/utils.js b/static/js/utils.js index bbf2134..7089ed3 100644 --- a/static/js/utils.js +++ b/static/js/utils.js @@ -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() {