change version notifications to html5

This commit is contained in:
Manuel Araoz 2014-06-27 15:32:52 -03:00
commit f964467c01
3 changed files with 14 additions and 17 deletions

View file

@ -16,6 +16,10 @@ factory('notification', ['$timeout',
duration: 5000,
enabled: true
},
version: {
duration: 60000,
enabled: true
},
warning: {
duration: 5000,
enabled: true
@ -135,6 +139,10 @@ factory('notification', ['$timeout',
return this.awesomeNotify('funds', 'bitcoin', title, content, userData);
},
version: function(title, content, severe) {
return this.awesomeNotify('version', severe ? 'alert' : 'flag', title, content);
},
error: function(title, content, userData) {
return this.awesomeNotify('error', 'x', title, content, userData);
},