From 8974847f48cf3d507c383223fb70e41da22891b2 Mon Sep 17 00:00:00 2001 From: Gustavo Maximiliano Cortez Date: Mon, 28 Jul 2014 15:41:12 -0300 Subject: [PATCH] Removed old unused notifications. Fixes template url for new notifications --- js/directives.js | 12 ------------ js/services/notifications.js | 2 +- 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/js/directives.js b/js/directives.js index f14b477e7..b1d6c3b35 100644 --- a/js/directives.js +++ b/js/directives.js @@ -23,18 +23,6 @@ angular.module('copayApp.directives') }; } ]) - .directive('notification', ['$rootScope', - function($rootScope) { - return { - restrict: 'A', - link: function(scope, element, attrs, ctrl) { - setTimeout(function() { - scope.$apply(function() {}); - }, 5000); - } - }; - } - ]) .directive('enoughAmount', ['$rootScope', function($rootScope) { var bitcore = require('bitcore'); diff --git a/js/services/notifications.js b/js/services/notifications.js index 2c70ce52f..908ae74b7 100644 --- a/js/services/notifications.js +++ b/js/services/notifications.js @@ -254,7 +254,7 @@ directive('notifications', function(notification, $compile) { return { restrict: 'A', scope: {}, - template: '
', + templateUrl: 'views/includes/notifications.html', link: link, controller: ['$scope', function NotificationsCtrl($scope) {