summaryrefslogtreecommitdiffstats
path: root/js/public
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2014-04-18 17:47:42 +0200
committerBernhard Posselt <dev@bernhard-posselt.com>2014-04-18 17:47:50 +0200
commit1ca71fccb13b726ae47f861a4678431bd7c51ed6 (patch)
tree6fd3f3b8b161d1b1fca470689b7e23df3149a098 /js/public
parent8eaeb793617076475a6851e1f0cc74e53a1f2f96 (diff)
fix broken audio feeds, fix #508
Diffstat (limited to 'js/public')
-rw-r--r--js/public/app.js36
1 files changed, 35 insertions, 1 deletions
diff --git a/js/public/app.js b/js/public/app.js
index 0c94f1a57..c1c2363be 100644
--- a/js/public/app.js
+++ b/js/public/app.js
@@ -102,7 +102,7 @@ License along with this library. If not, see <http://www.gnu.org/licenses/>.
type: '@'
},
transclude: true,
- template: '' + '<audio controls="controls" preload="none" ng-hide="cantPlay()">' + '<source src="{{ src }}">' + '</audio>' + '<a href="{{ src }}" class="button" ng-show="cantPlay()" ' + 'ng-transclude></a>',
+ template: '' + '<audio controls="controls" preload="none" ng-hide="cantPlay()">' + '<source ng-src="{{ src|trustUrl }}">' + '</audio>' + '<a ng-href="{{ src|trustUrl }}" class="button" ng-show="cantPlay()" ' + 'ng-transclude></a>',
link: function(scope, elm, attrs) {
var cantPlay, source;
source = elm.children().children('source')[0];
@@ -940,6 +940,40 @@ License along with this library. If not, see <http://www.gnu.org/licenses/>.
ownCloud - News
+@author Bernhard Posselt
+@copyright 2012 Bernhard Posselt dev@bernhard-posselt.com
+
+This library is free software; you can redistribute it and/or
+modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE
+License as published by the Free Software Foundation; either
+version 3 of the License, or any later version.
+
+This library is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU AFFERO GENERAL PUBLIC LICENSE for more details.
+
+You should have received a copy of the GNU Affero General Public
+License along with this library. If not, see <http://www.gnu.org/licenses/>.
+*/
+
+
+(function() {
+ angular.module('News').filter('trustUrl', [
+ '$sce', function($sce) {
+ return function(url) {
+ return $sce.trustAsResourceUrl(url);
+ };
+ }
+ ]);
+
+}).call(this);
+
+// Generated by CoffeeScript 1.6.3
+/*
+
+ownCloud - News
+
@author Alessandro Cosentino
@copyright 2013 Alessandro Cosentino cosenal@gmail.com