summaryrefslogtreecommitdiffstats
path: root/js/directive/NewsRouteReload.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/directive/NewsRouteReload.js')
-rw-r--r--js/directive/NewsRouteReload.js26
1 files changed, 0 insertions, 26 deletions
diff --git a/js/directive/NewsRouteReload.js b/js/directive/NewsRouteReload.js
deleted file mode 100644
index 01cfa525c..000000000
--- a/js/directive/NewsRouteReload.js
+++ /dev/null
@@ -1,26 +0,0 @@
-/**
- * ownCloud - News
- *
- * This file is licensed under the Affero General Public License version 3 or
- * later. See the COPYING file.
- *
- * @author Bernhard Posselt <dev@bernhard-posselt.com>
- * @copyright Bernhard Posselt 2014
- */
-app.directive('newsRouteReload', ($location, $route) => {
- 'use strict';
-
- return {
- restrict: 'A',
- scope: {
- 'ngHref': '@'
- },
- link: (scope, elem, attrs) => {
- elem.click(() => {
- if ($location.path() === attrs.ngHref.substring(1)) {
- $route.reload();
- }
- });
- }
- };
-}); \ No newline at end of file