diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-06-02 00:57:12 +0200 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-06-02 00:57:12 +0200 |
commit | 8601a2b83367627f3c0957f353b5a753dc1aa486 (patch) | |
tree | f0d8d7d0c9a42a446aa1fe48a3d16fb87727ece9 /js | |
parent | 1280da30fcca91fa1a07db70271393d3c4876369 (diff) |
reload with directive
Diffstat (limited to 'js')
-rw-r--r-- | js/build/app.js | 18 | ||||
-rw-r--r-- | js/directive/NewsRouteReload.js | 26 |
2 files changed, 0 insertions, 44 deletions
diff --git a/js/build/app.js b/js/build/app.js index 31214d632..81b92d4d0 100644 --- a/js/build/app.js +++ b/js/build/app.js @@ -1635,24 +1635,6 @@ var $__build_47_app__ = function () { }); }; }); - app.directive('newsRouteReload', [ - '$location', - '$route', - function ($location, $route) { - 'use strict'; - return { - restrict: 'A', - scope: { 'ngHref': '@' }, - link: function (scope, elem, attrs) { - elem.click(function () { - if ($location.path() === attrs.ngHref.substring(1)) { - $route.reload(); - } - }); - } - }; - } - ]); app.directive('newsScroll', [ '$timeout', function ($timeout) { 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 |