Skip to content

Commit

Permalink
v2.3.6
Browse files Browse the repository at this point in the history
  • Loading branch information
needim committed Aug 13, 2015
1 parent 5b12629 commit e3b341e
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 14 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name" : "noty",
"version" : "2.3.5",
"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.5
@version version: 2.3.6
@contributors https://github.com/needim/noty/graphs/contributors
@documentation Examples and Documentation - http://needim.github.com/noty/
Expand Down
20 changes: 11 additions & 9 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.5
@version version: 2.3.6
@contributors https://github.com/needim/noty/graphs/contributors
@documentation Examples and Documentation - http://needim.github.com/noty/
Expand Down Expand Up @@ -83,6 +83,7 @@

$.each(this.options.buttons, function(i, button) {
var $button = $('<button/>').addClass((button.addClass) ? button.addClass : 'gray').html(button.text).attr('id', button.id ? button.id : 'button-' + i)
.attr('title', button.title)
.appendTo(self.$bar.find('.noty_buttons'))
.on('click', function(event) {
if($.isFunction(button.onClick)) {
Expand Down Expand Up @@ -114,7 +115,7 @@

self.$bar.addClass(self.options.layout.addClass);

self.options.layout.container.style.apply($(self.options.layout.container.selector));
self.options.layout.container.style.apply($(self.options.layout.container.selector), [self.options.within]);

self.showing = true;

Expand Down Expand Up @@ -169,9 +170,9 @@

// If noty is have a timeout option
if(self.options.timeout)
setTimeout(function() {
self.$bar.delay(self.options.timeout).promise().done(function() {
self.close();
}, self.options.timeout);
});

return this;

Expand Down Expand Up @@ -237,7 +238,7 @@
// Modal Cleaning
if(self.options.modal) {
$.notyRenderer.setModalCount(-1);
if($.notyRenderer.getModalCount() == 0) $('.noty_modal').fadeOut('fast', function() {
if($.notyRenderer.getModalCount() == 0) $('.noty_modal').fadeOut(self.options.animation.fadeSpeed, function() {
$(this).remove();
});
}
Expand Down Expand Up @@ -354,7 +355,7 @@
if($.type(instance) === 'object') {
if(instance.options.dismissQueue) {
if(instance.options.maxVisible > 0) {
if($(instance.options.layout.container.selector + ' li').length < instance.options.maxVisible) {
if($(instance.options.layout.container.selector + ' > li').length < instance.options.maxVisible) {
$.notyRenderer.show($.noty.queue.shift());
}
else {
Expand Down Expand Up @@ -415,7 +416,7 @@
if(notification.options.theme.modal && notification.options.theme.modal.css)
modal.css(notification.options.theme.modal.css);

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

if($.inArray('backdrop', notification.options.closeWith) > -1)
modal.on('click', function(e) {
Expand Down Expand Up @@ -509,7 +510,8 @@
open : {height: 'toggle'},
close : {height: 'toggle'},
easing: 'swing',
speed : 500
speed : 500,
fadeSpeed: 'fast',
},
timeout : false,
force : false,
Expand Down Expand Up @@ -1433,4 +1435,4 @@ $.noty.themes.relax = {

return window.noty;

});
});
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.5",
"version" : "2.3.6",
"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.5",
"version": "2.3.6",
"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 e3b341e

Please sign in to comment.