Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions dist/angular-ui-notification.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ angular.module('ui-notification').provider('Notification', function() {
closeOnClick: true,
maxCount: 0, // 0 - Infinite
container: 'body',
priority: 10
priority: 10,
debug: true
};

this.setOptions = function(options) {
Expand Down Expand Up @@ -61,6 +62,11 @@ angular.module('ui-notification').provider('Notification', function() {
args.closeOnClick = (args.closeOnClick !== null && args.closeOnClick !== undefined) ? args.closeOnClick : options.closeOnClick;
args.container = args.container ? args.container : options.container;
args.priority = args.priority ? args.priority : options.priority;
args.debug = args.debug ? args.debug : options.debug;

if (!args.debug) {
return;
}

var template=$templateCache.get(args.template);

Expand Down Expand Up @@ -259,4 +265,4 @@ angular.module('ui-notification').provider('Notification', function() {
}];
});

angular.module("ui-notification").run(["$templateCache", function($templateCache) {$templateCache.put("angular-ui-notification.html","<div class=\"ui-notification\"><h3 ng-show=\"title\" ng-bind-html=\"title\"></h3><div class=\"message\" ng-bind-html=\"message\"></div></div>");}]);
angular.module("ui-notification").run(["$templateCache", function($templateCache) {$templateCache.put("angular-ui-notification.html","<div class=\"ui-notification\"><h3 ng-show=\"title\" ng-bind-html=\"title\"></h3><div class=\"message\" ng-bind-html=\"message\"></div></div>");}]);