From 149dcab1c32b2dac11d93d000ba82b2be9599e98 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 | 12 ++++++++---- test/unit/plugins.js | 6 ++++-- 4 files changed, 23 insertions(+), 9 deletions(-) diff --git a/index.html b/index.html index c48f44c..0e03aea 100644 --- a/index.html +++ b/index.html @@ -204,8 +204,7 @@
- - {{ activeBuffer().trimmedName || activeBuffer().fullName }} + {{ activeBuffer().trimmedName || activeBuffer().fullName }}
@@ -260,7 +259,7 @@ <>
+ --> diff --git a/js/filters.js b/js/filters.js index a8aa334..ee2e321 100644 --- a/js/filters.js +++ b/js/filters.js @@ -135,6 +135,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(/