Skip to content

Commit

Permalink
Merge branch 'master' of github.com:CodeSeven/toastr
Browse files Browse the repository at this point in the history
  • Loading branch information
drewfreyling committed Nov 29, 2013
2 parents 15a5126 + 9d7df36 commit 64e72a1
Show file tree
Hide file tree
Showing 7 changed files with 38 additions and 10 deletions.
11 changes: 11 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
language: node_js
node_js:
- "0.10"

install:
- npm install -g grunt-cli bower
- npm install
- bower install

script:
- npm test
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# 2.0.1 (2013-11-1)

#DRAFT

## Features

- **foo feature:**
- add support for foo then link to commit

## Bug Fixes

3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,8 @@
"grunt-contrib-uglify": "~0.2.2",
"grunt-contrib-less": "~0.6.4",
"grunt-contrib-qunit": "~0.2.2"
},
"scripts": {
"test": "grunt"
}
}
10 changes: 5 additions & 5 deletions toastr.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*
/*
* Toastr
* Version 2.0.1
* Copyright 2012 John Papa and Hans Fjällemark.
Expand Down Expand Up @@ -155,7 +155,7 @@ button.toast-close-button {
background-color: #f89406;
}
/*Responsive Design*/
@media all and (max-width: 240px) {
@media all and (max-width: 239px) {
#toast-container > div {
padding: 8px 8px 8px 50px;
width: 11em;
Expand All @@ -165,7 +165,7 @@ button.toast-close-button {
top: -0.2em;
}
}
@media all and (min-width: 241px) and (max-width: 480px) {
@media all and (min-width: 240px) and (max-width: 479px) {
#toast-container > div {
padding: 8px 8px 8px 50px;
width: 18em;
Expand All @@ -175,9 +175,9 @@ button.toast-close-button {
top: -0.2em;
}
}
@media all and (min-width: 481px) and (max-width: 768px) {
@media all and (min-width: 480px) and (max-width: 767px) {
#toast-container > div {
padding: 15px 15px 15px 50px;
width: 25em;
}
}
}
8 changes: 6 additions & 2 deletions toastr.js
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,11 @@
}
if (options.closeButton && $closeElement) {
$closeElement.click(function (event) {
event.stopPropagation();
if( event.stopPropagation ) {
event.stopPropagation();
} else if( event.cancelBubble !== undefined && event.cancelBubble !== true ) {
event.cancelBubble = true;
}
hideToast(true);
});
}
Expand Down Expand Up @@ -299,7 +303,7 @@
});
}(typeof define === 'function' && define.amd ? define : function (deps, factory) {
if (typeof module !== 'undefined' && module.exports) { //Node
module.exports = factory(require(deps[0]));
module.exports = factory(require('jquery'));
} else {
window['toastr'] = factory(window['jQuery']);
}
Expand Down
2 changes: 1 addition & 1 deletion toastr.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions toastr.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 64e72a1

Please sign in to comment.