Skip to content

Commit

Permalink
jquery.noty.min.js added
Browse files Browse the repository at this point in the history
  • Loading branch information
needim committed Feb 11, 2012
1 parent 0798419 commit 8fe9ff3
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
9 changes: 1 addition & 8 deletions js/jquery.noty.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
/**
* jQuery Noty Plugin v0.1
*
* Copyright (c) 2011 LMS Co Inc.
* Authors: Nedim Arabacı (http://ned.im), Muhittin Özer (http://muhittinozer.com)
*
* Created: 31/10/2011
* http://needim.github.com/noty/
*
* Licensed under the MIT licenses:
* http://www.opensource.org/licenses/mit-license.php
Expand All @@ -24,10 +22,8 @@
if (base.options.layout != 'topLeft' && base.options.layout != 'topRight') {
if (base.options.force) {
$.noty.queue.unshift({options: base.options});
$('#noty_queue_list').prepend($('<li/>').addClass(base.options.type).html(base.options.type));
} else {
$.noty.queue.push({options: base.options});
$('#noty_queue_list').append($('<li/>').addClass(base.options.type).html(base.options.type));
}

base.render();
Expand Down Expand Up @@ -106,10 +102,8 @@

// Layout spesific cleaning
if (options.layout == 'topLeft' || options.layout == 'topRight') {
$('#noty_queue_list li:last').remove();
$noty.parent().remove();
} else {
$('#noty_queue_list li:first').remove();
$noty.remove();
}

Expand Down Expand Up @@ -164,7 +158,6 @@
$.noty.queue = [];

$.noty.clearQueue = function () {
$('#noty_queue_list li').remove();
$.noty.queue = [];
};

Expand Down
11 changes: 11 additions & 0 deletions js/jquery.noty.min.js

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

0 comments on commit 8fe9ff3

Please sign in to comment.