From 9a18ee30b6da61adeaa6c8b77081c61b09744a83 Mon Sep 17 00:00:00 2001 From: Geoffrey Frogeye Date: Sat, 4 Apr 2015 13:19:27 +0200 Subject: [PATCH] Notifications : Efface le message si erreur vide --- public/js/services/NotifyServ.js | 6 ++++++ 1 file changed, 6 insertions(+), 0 deletions(-) diff --git a/public/js/services/NotifyServ.js b/public/js/services/NotifyServ.js index 9e88602..a111814 100644 --- a/public/js/services/NotifyServ.js +++ b/public/js/services/NotifyServ.js @@ -38,6 +38,9 @@ angular.module('NotifyServ', []).service('NotifyServ', [ console.warn(message); }, error: function (context, error) { + if (!error) { + error = ''; + } this.notify({ title: context, message: error @@ -80,6 +83,9 @@ angular.module('NotifyServ', []).service('NotifyServ', [ }); }, error: function (context, error) { + if (!error) { + error = ''; + } commands = { title: context, message: error, -- libgit2 0.21.2