From ed42d3fb7ccbd46ca8aadb8a623b3bb1e7721441 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Molakvo=C3=A6=20=28skjnldsv=29?= Date: Tue, 7 Aug 2018 19:04:53 +0200 Subject: Fix update MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: John Molakvoæ (skjnldsv) --- js/app-inject-14.js | 5 ----- js/app/App.js | 6 ++++++ templates/index.php | 3 +-- 3 files changed, 7 insertions(+), 7 deletions(-) delete mode 100644 js/app-inject-14.js diff --git a/js/app-inject-14.js b/js/app-inject-14.js deleted file mode 100644 index 20976dacc..000000000 --- a/js/app-inject-14.js +++ /dev/null @@ -1,5 +0,0 @@ -$('#content.app-news') - .attr('ng-app', 'News') - .attr('ng-cloak', '') - .attr('ng-strict-di', '') - .attr('ng-controller', 'AppController as App'); \ No newline at end of file diff --git a/js/app/App.js b/js/app/App.js index c1e4d667d..4c1e553de 100644 --- a/js/app/App.js +++ b/js/app/App.js @@ -8,5 +8,11 @@ * @copyright Bernhard Posselt 2014 */ +$('#content.app-news') + .attr('ng-app', 'News') + .attr('ng-cloak', '') + .attr('ng-strict-di', '') + .attr('ng-controller', 'AppController as App'); + /* jshint unused: false */ var app = angular.module('News', ['ngRoute', 'ngSanitize', 'ngAnimate']); diff --git a/templates/index.php b/templates/index.php index 363b0fee0..c3c1f7feb 100644 --- a/templates/index.php +++ b/templates/index.php @@ -2,8 +2,7 @@ use OCA\News\Plugin\Client\Plugin; script('news', [ - 'build/app.min', - 'app-inject-14' + 'build/app.min' ]); style('news', [ -- cgit v1.2.3