From 3b648b382f7041ba9b07bf0a119d36e761d6ebea 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 | 6 +++++- test/unit/plugins.js | 6 ++++-- 4 files changed, 20 insertions(+), 6 deletions(-) diff --git a/index.html b/index.html index 5dcaa3a..19c68b7 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 b07df0c..8e4a74d 100644 --- a/js/filters.js +++ b/js/filters.js @@ -125,6 +125,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(/