From 432b8d307a165dcb28b05d796e62d81702d8e8e5 Mon Sep 17 00:00:00 2001 From: "Marcel Kapfer (mmk2410)" Date: Mon, 25 Apr 2016 18:47:02 +0200 Subject: [PATCH] Open article link in a new tab Fixes T34 --- index.php | 10 +++++----- res/js/app.js | 2 ++ 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/index.php b/index.php index 7b3e7df..d2ae689 100644 --- a/index.php +++ b/index.php @@ -294,11 +294,11 @@ if ($config["design"]["drawer"] == "on") { ?>
- setBreaksEnabled(true)// with linebreaks - ->text($file); - echo $intro; // PRINTS THE SH**** + setBreaksEnabled(true)// with linebreaks + ->text($file); + echo $intro; // PRINTS THE SH**** ?>
diff --git a/res/js/app.js b/res/js/app.js index 88b9e0e..9fec863 100644 --- a/res/js/app.js +++ b/res/js/app.js @@ -68,6 +68,8 @@ var main = function () { // main function; called below }); + $('.articletext a').attr('target', '_blank'); + }; $(document).ready(main); // run if document is loaded