summaryrefslogtreecommitdiff
path: root/public
diff options
context:
space:
mode:
Diffstat (limited to 'public')
-rw-r--r--public/js/extra.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/public/js/extra.js b/public/js/extra.js
index 2930ec25..3ad78c9a 100644
--- a/public/js/extra.js
+++ b/public/js/extra.js
@@ -207,6 +207,10 @@ function postProcess(code) {
result.find("iframe").replaceWith(function () {
return "<noiframe>" + $(this).html() + "</noiframe>"
});
+ //link should open in new window or tab
+ result.find('a:not([target])').attr('target', '_blank');
+ return result;
+}
}
}
}