Skip to content

Commit

Permalink
v2.3.7
Browse files Browse the repository at this point in the history
  • Loading branch information
needim committed Sep 14, 2015
1 parent 18bf433 commit 25f66d6
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module.exports = function(grunt) {

bump : {
options: {
files : ['package.json', 'noty.jquery.json', 'bower.json', 'js/noty/jquery.noty.js'],
files : ['package.json', 'noty.jquery.json', 'js/noty/jquery.noty.js'],
updateConfigs : [],
commit : false,
commitMessage : 'Release v%VERSION%',
Expand Down
1 change: 0 additions & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"name" : "noty",
"version" : "2.3.6",
"main" : "js/noty/packaged/jquery.noty.packaged.js",
"ignore" : [],
"authors" : [
Expand Down
2 changes: 1 addition & 1 deletion js/noty/jquery.noty.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*!
@package noty - jQuery Notification Plugin
@version version: 2.3.6
@version version: 2.3.7
@contributors https://github.com/needim/noty/graphs/contributors
@documentation Examples and Documentation - http://needim.github.com/noty/
Expand Down
13 changes: 11 additions & 2 deletions js/noty/packaged/jquery.noty.packaged.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

/*!
@package noty - jQuery Notification Plugin
@version version: 2.3.6
@version version: 2.3.7
@contributors https://github.com/needim/noty/graphs/contributors
@documentation Examples and Documentation - http://needim.github.com/noty/
Expand Down Expand Up @@ -150,10 +150,19 @@

if (typeof self.options.animation.open == 'string') {
self.$bar.css('height', self.$bar.innerHeight());
self.$bar.on('click',function(e){
self.wasClicked = true;
});
self.$bar.show().addClass(self.options.animation.open).one('webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend', function() {
if(self.options.callback.afterShow) self.options.callback.afterShow.apply(self);
self.showing = false;
self.shown = true;
if(self.hasOwnProperty('wasClicked')){
self.$bar.off('click',function(e){
self.wasClicked = true;
});
self.close();
}
});

} else {
Expand Down Expand Up @@ -416,7 +425,7 @@
if(notification.options.theme.modal && notification.options.theme.modal.css)
modal.css(notification.options.theme.modal.css);

modal.prependTo($('body')).fadeIn(self.options.animation.fadeSpeed);
modal.prependTo($('body')).fadeIn(notification.options.animation.fadeSpeed);

if($.inArray('backdrop', notification.options.closeWith) > -1)
modal.on('click', function(e) {
Expand Down
2 changes: 1 addition & 1 deletion js/noty/packaged/jquery.noty.packaged.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion noty.jquery.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name" : "noty",
"version" : "2.3.6",
"version" : "2.3.7",
"title" : "noty - a jquery notification plugin",
"description" : "noty is a jQuery plugin that makes it easy to create alert - success - error - warning - information - confirmation messages as an alternative the standard alert dialog. Each notification is added to a queue. (Optional)",
"keywords" : ["noty", "notification", "plugin", "jquery", "javascript", "alert", "error", "warning", "information", "confirmation"],
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "noty",
"version": "2.3.6",
"version": "2.3.7",
"title": "noty - a jquery notification plugin",
"description": "noty is a jQuery plugin that makes it easy to create alert - success - error - warning - information - confirmation messages as an alternative the standard alert dialog. Each notification is added to a queue. (Optional)",
"homepage": "http://needim.github.com/noty",
Expand Down

0 comments on commit 25f66d6

Please sign in to comment.