Permalink
Browse files

updated nuget

  • Loading branch information...
1 parent ad4f4bb commit efc5ad651521fb628c32965bd6dfb7aab444fe35 @johnpapa johnpapa committed Sep 11, 2013
@@ -1,4 +1,15 @@
-.toast-title {
+/*
+ * Toastr
+ * Version 2.0.0
+ * Copyright 2012 John Papa and Hans Fjällemark.
+ * All Rights Reserved.
+ * Use, reproduction, distribution, and modification of this code is subject to the terms and
+ * conditions of the MIT license, available at http://www.opensource.org/licenses/mit-license.php
+ *
+ * Author: John Papa and Hans Fjällemark
+ * Project: https://github.com/CodeSeven/toastr
+ */
+.toast-title {
font-weight: bold;
}
.toast-message {
@@ -13,10 +24,7 @@
color: #cccccc;
text-decoration: none;
}
-/*
- https://github.com/twitter/bootstrap/blob/master/less/close.less
- https://github.com/twitter/bootstrap/blob/master/less/alerts.less
-*/
+
.toast-close-button {
position: relative;
right: -0.3em;
@@ -40,6 +48,7 @@
-ms-filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=40);
filter: alpha(opacity=40);
}
+
/*Additional properties for button version
iOS requires the button element instead of an anchor tag.
If you want the anchor version, it requires `href="#"`.*/
@@ -53,11 +53,6 @@
}
}
-//#region close button
-/*
- https://github.com/twitter/bootstrap/blob/master/less/close.less
- https://github.com/twitter/bootstrap/blob/master/less/alerts.less
-*/
.toast-close-button {
position: relative;
right: -0.3em;
@@ -1,4 +1,6 @@
/*
+ * Toastr
+ * Version 2.0.0
* Copyright 2012 John Papa and Hans Fjällemark.
* All Rights Reserved.
* Use, reproduction, distribution, and modification of this code is subject to the terms and
@@ -10,7 +12,7 @@
; (function (define) {
define(['jquery'], function ($) {
return (function () {
- var version = '2.0.0rc1';
+ var version = '2.0.0';
var $container;
var listener;
var toastId = 0;
@@ -209,9 +211,12 @@
if (!options.onclick && options.tapToDismiss) {
$toastElement.click(hideToast);
}
- if(options.closeButton && $closeElement){
- $closeElement.click(function(){ hideToast(true); });
- }
+ if (options.closeButton && $closeElement) {
+ $closeElement.click(function (event) {
+ event.stopPropogation();
+ hideToast(true);
+ });
+ }
if (options.onclick) {
$toastElement.click(function () {

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
Oops, something went wrong.

0 comments on commit efc5ad6

Please sign in to comment.