From 584c7feef4e296e6f1a95e49aad0bcc0c34748cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lorenz=20H=C3=BCbschle-Schneider?= Date: Tue, 25 Nov 2014 16:38:30 +0100 Subject: [PATCH] Fix links and embeds Disable semi-broken plugins --- index.html | 5 ++--- js/filters.js | 9 +++++++++ js/plugins.js | 4 +++- test/unit/plugins.js | 2 ++ 4 files changed, 16 insertions(+), 4 deletions(-) diff --git a/index.html b/index.html index bfcd31e..61cc493 100644 --- a/index.html +++ b/index.html @@ -194,8 +194,7 @@
- - {{ activeBuffer().trimmedName || activeBuffer().fullName }} + {{ activeBuffer().trimmedName || activeBuffer().fullName }}
@@ -250,7 +249,7 @@
+ --> diff --git a/js/filters.js b/js/filters.js index c10160e..cce0992 100644 --- a/js/filters.js +++ b/js/filters.js @@ -119,6 +119,15 @@ weechat.filter('DOMfilter', ['$filter', '$sce', function($filter, $sce) { }; }]); +weechat.filter('linksForCordova', ['$sce', function($sce) { + return function (text) { + // Cordova: need to use window.open instead of href + // XXX TODO this needs to be improved + text = text.replace(/