From c84e90d38132c02ea43f93f5be7f440a6d53c75b 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 | 4 ++-- js/filters.js | 9 +++++++++ js/plugins.js | 4 +++- test/unit/plugins.js | 2 ++ 4 files changed, 16 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index ea8f97d..86dc5f3 100644 --- a/index.html +++ b/index.html @@ -188,7 +188,7 @@
- +
@@ -244,7 +244,7 @@
+ --> diff --git a/js/filters.js b/js/filters.js index 9cefa52..a6f7271 100644 --- a/js/filters.js +++ b/js/filters.js @@ -117,6 +117,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(/