Skip to content

Commit ba79bb1

Browse files
committed
Merge branch 'develop'
Conflicts: build/toastr.min.js
2 parents 4a51cce + 0188795 commit ba79bb1

File tree

9 files changed

+148
-109
lines changed

9 files changed

+148
-109
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1+
# 2.1.1 (2015-02-19)
12

3+
## New Features
4+
- Support for explicitly clearing a toast [jstawski](https://github.com/jstawski) | [PR 226](https://github.com/CodeSeven/toastr/pull/226)
5+
6+
## Dev Ops
7+
- Refactor to use gulp
28

39
# 2.1.0 (2014-10-15)
410

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
[![Build Status](https://travis-ci.org/CodeSeven/toastr.svg)](https://travis-ci.org/CodeSeven/toastr)
55

66
## Current Version
7-
2.1.0
7+
2.1.1
88

99
## Demo
1010
- Demo can be found at http://codeseven.github.io/toastr/demo.html
@@ -169,7 +169,7 @@ All pull requests are subject to approval by the repository owners, who have sol
169169
Inspired by https://github.com/Srirangan/notifer.js/.
170170

171171
## Copyright
172-
Copyright © 2012-2014
172+
Copyright © 2012-2015
173173

174174
## License
175175
toastr is under MIT license - http://www.opensource.org/licenses/mit-license.php

build/toastr.js.map

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

build/toastr.min.js

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

demo.html

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,12 @@ <h1>toastr</h1>
5656
</div>
5757
<div class="controls">
5858
<label class="checkbox" for="addClear">
59-
<input id="addClear" type="checkbox" value="checked" class="input-mini" />Add Clear Button
59+
<input id="addClear" type="checkbox" value="checked" class="input-mini" />Add button to force clearing a toast, ignoring focus
60+
</label>
61+
</div>
62+
<div class="controls">
63+
<label class="checkbox" for="newestOnTop">
64+
<input id="newestOnTop" type="checkbox" value="checked" class="input-mini" />Newest on top
6065
</label>
6166
</div>
6267
</div>
@@ -193,9 +198,10 @@ <h2>Links</h2>
193198

194199
return msgs[i];
195200
};
201+
196202
var getMessageWithClearButton = function (msg) {
197203
msg = msg ? msg : 'Clear itself?';
198-
msg += '<br /><br /><button type="button" class="clear">Yes</button>';
204+
msg += '<br /><br /><button type="btn button" class="clear">Yes</button>';
199205
return msg;
200206
};
201207

@@ -217,6 +223,7 @@ <h2>Links</h2>
217223
toastr.options = {
218224
closeButton: $('#closeButton').prop('checked'),
219225
debug: $('#debugInfo').prop('checked'),
226+
newestOnTop: $('#newestOnTop').prop('checked'),
220227
progressBar: $('#progressBar').prop('checked'),
221228
positionClass: $('#positionGroup input:radio:checked').val() || 'toast-top-right',
222229
preventDuplicates: $('#preventDuplicates').prop('checked'),

gulpfile.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ gulp.task('js', function() {
5252
.pipe(plug.bytediff.stop(bytediffFormatter))
5353
.pipe(plug.sourcemaps.write('/'))
5454
.pipe(plug.rename(function(path) {
55-
if(path.extname === ".js") {
56-
path.basename += ".min"
57-
}
55+
if (path.extname === '.js') {
56+
path.basename += '.min';
57+
}
5858
}))
5959
.pipe(gulp.dest(paths.build));
6060
});

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"filename": "js/toastr.min.js",
44
"main": "toastr.js",
55
"style": "./toastr.min.css",
6-
"version": "2.1.0",
6+
"version": "2.1.1",
77
"description": "ToastrJS is a JavaScript library for Gnome / Growl type non-blocking notifications. jQuery is required. The goal is to create a simple core library that can be customized and extended.",
88
"homepage": "http://www.toastrjs.com",
99
"keywords": [

0 commit comments

Comments
 (0)