24 lines
543 B
JavaScript
24 lines
543 B
JavaScript
/*global PNotify */
|
|
|
|
'use strict';
|
|
|
|
angular.module('bansho.notifications', [])
|
|
.service('notifications', [
|
|
function () {
|
|
var push = function (type, title, message) {
|
|
$(function(){
|
|
new PNotify({
|
|
type: type,
|
|
title: title,
|
|
text: message,
|
|
styling: {},
|
|
});
|
|
});
|
|
};
|
|
|
|
return {
|
|
"push": push
|
|
};
|
|
|
|
}]);
|