Skip to content

Commit 977b13c

Browse files
committed
generate release files
1 parent 70590b5 commit 977b13c

File tree

6 files changed

+35
-21
lines changed

6 files changed

+35
-21
lines changed

dist/angular-toastr.css

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
}
77
.toast-message a,
88
.toast-message label {
9-
color: #ffffff;
9+
color: #FFFFFF;
1010
}
1111
.toast-message a:hover {
12-
color: #cccccc;
12+
color: #CCCCCC;
1313
text-decoration: none;
1414
}
1515
.toast-close-button {
@@ -19,7 +19,7 @@
1919
float: right;
2020
font-size: 20px;
2121
font-weight: bold;
22-
color: #ffffff;
22+
color: #FFFFFF;
2323
-webkit-text-shadow: 0 1px 0 #ffffff;
2424
text-shadow: 0 1px 0 #ffffff;
2525
opacity: 0.8;
@@ -101,7 +101,7 @@ button.toast-close-button {
101101
-moz-box-shadow: 0 0 12px #999999;
102102
-webkit-box-shadow: 0 0 12px #999999;
103103
box-shadow: 0 0 12px #999999;
104-
color: #ffffff;
104+
color: #FFFFFF;
105105
opacity: 0.8;
106106
}
107107
#toast-container > :hover {
@@ -137,16 +137,16 @@ button.toast-close-button {
137137
background-color: #030303;
138138
}
139139
.toast-success {
140-
background-color: #51a351;
140+
background-color: #51A351;
141141
}
142142
.toast-error {
143-
background-color: #bd362f;
143+
background-color: #BD362F;
144144
}
145145
.toast-info {
146-
background-color: #2f96b4;
146+
background-color: #2F96B4;
147147
}
148148
.toast-warning {
149-
background-color: #f89406;
149+
background-color: #F89406;
150150
}
151151
.toast-progress {
152152
position: absolute;

dist/angular-toastr.js

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
toast.isOpened = false;
7070
$animate.leave(toast.el).then(function() {
7171
if (toast.scope.options.onHidden) {
72-
toast.scope.options.onHidden(wasClicked);
72+
toast.scope.options.onHidden(!!wasClicked, toast);
7373
}
7474
toast.scope.$destroy();
7575
var index = toasts.indexOf(toast);
@@ -101,8 +101,7 @@
101101
}
102102

103103
/* Internal functions */
104-
function _buildNotification(type, message, title, optionsOverride)
105-
{
104+
function _buildNotification(type, message, title, optionsOverride) {
106105
if (angular.isObject(title)) {
107106
optionsOverride = title;
108107
title = null;
@@ -201,8 +200,8 @@
201200
extendedTimeOut: options.extendedTimeOut,
202201
messageClass: options.messageClass,
203202
onHidden: options.onHidden,
204-
onShown: options.onShown,
205-
onTap: options.onTap,
203+
onShown: generateEvent('onShown'),
204+
onTap: generateEvent('onTap'),
206205
progressBar: options.progressBar,
207206
tapToDismiss: options.tapToDismiss,
208207
timeOut: options.timeOut,
@@ -213,6 +212,14 @@
213212
if (options.closeButton) {
214213
toast.scope.options.closeHtml = options.closeHtml;
215214
}
215+
216+
function generateEvent(event) {
217+
if (options[event]) {
218+
return function() {
219+
options[event](toast);
220+
};
221+
}
222+
}
216223
}
217224

218225
function createToast() {

dist/angular-toastr.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)