Skip to content

Commit

Permalink
fix for #302
Browse files Browse the repository at this point in the history
  • Loading branch information
needim committed Jan 11, 2016
1 parent 25f66d6 commit 6fe2cf8
Show file tree
Hide file tree
Showing 19 changed files with 92 additions and 30 deletions.
2 changes: 1 addition & 1 deletion demo/allLayouts.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
<script src="jquery-1.7.2.min.js"></script>

<!-- noty -->
<script type="text/javascript" src="../js/noty/packaged/jquery.noty.packaged.min.js"></script>
<script type="text/javascript" src="../js/noty/packaged/jquery.noty.packaged.js"></script>

<script type="text/javascript">

Expand Down
2 changes: 1 addition & 1 deletion demo/api.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
<script src="jquery-1.7.2.min.js"></script>

<!-- noty -->
<script type="text/javascript" src="../js/noty/packaged/jquery.noty.packaged.min.js"></script>
<script type="text/javascript" src="../js/noty/packaged/jquery.noty.packaged.js"></script>

<script type="text/javascript">

Expand Down
2 changes: 1 addition & 1 deletion demo/consumingAlert.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
<script src="jquery-1.7.2.min.js"></script>

<!-- noty -->
<script type="text/javascript" src="../js/noty/packaged/jquery.noty.packaged.min.js"></script>
<script type="text/javascript" src="../js/noty/packaged/jquery.noty.packaged.js"></script>

<script type="text/javascript">

Expand Down
2 changes: 1 addition & 1 deletion demo/customContainer.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
<script src="jquery-1.7.2.min.js"></script>

<!-- noty -->
<script type="text/javascript" src="../js/noty/packaged/jquery.noty.packaged.min.js"></script>
<script type="text/javascript" src="../js/noty/packaged/jquery.noty.packaged.js"></script>

<script type="text/javascript">

Expand Down
72 changes: 72 additions & 0 deletions demo/issue302.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta charset="utf-8">
<title>issue302</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="demonstration of some noty capabilities">

<link href='http://fonts.googleapis.com/css?family=PT+Sans:regular,italic,bold,bolditalic&amp;subset=latin,latin-ext,cyrillic' rel='stylesheet' type='text/css'>
<style type="text/css">

html {
height: 100%;
width: 100%;
}

body {
font-family: 'PT Sans', Tahoma, Arial, serif;
line-height: 13px
}

</style>

<link rel="stylesheet" type="text/css" href="buttons.css"/>
<link rel="stylesheet" type="text/css" href="animate.css"/>

</head>
<body>

<div class="container">

<a href="#" class="open">Click here</a>

</div>

<script src="jquery-1.7.2.min.js"></script>

<!-- noty -->
<script type="text/javascript" src="../js/noty/packaged/jquery.noty.packaged.js"></script>

<script type="text/javascript">

$(document).ready(function () {

var options = {
text: 'a',
timeout: 500,
type: 'success',
theme: 'relax',
layout: 'topRight',
closeWith: ['click'],
maxVisible: 10,
animation: {
open: 'animated bounceInDown', // Animate.css class names
close: 'animated bounceOutRight', // Animate.css class names
easing: 'swing', // unavailable - no need
speed: 500 // unavailable - no need
}
};

// missing options such as Theme!!
$('.open').click(function(e){
console.log(options);
e.preventDefault();
noty(options);
});
});

</script>
</body>
</html>
2 changes: 1 addition & 1 deletion demo/killer.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
<script src="jquery-1.7.2.min.js"></script>

<!-- noty -->
<script type="text/javascript" src="../js/noty/packaged/jquery.noty.packaged.min.js"></script>
<script type="text/javascript" src="../js/noty/packaged/jquery.noty.packaged.js"></script>

<script type="text/javascript">

Expand Down
2 changes: 1 addition & 1 deletion demo/themeBootstrap.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
<script src="jquery-1.7.2.min.js"></script>

<!-- noty -->
<script type="text/javascript" src="../js/noty/packaged/jquery.noty.packaged.min.js"></script>
<script type="text/javascript" src="../js/noty/packaged/jquery.noty.packaged.js"></script>

<script type="text/javascript">

Expand Down
2 changes: 1 addition & 1 deletion demo/themeCss.html
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@
<script src="jquery-1.7.2.min.js"></script>

<!-- noty -->
<script type="text/javascript" src="../js/noty/packaged/jquery.noty.packaged.min.js"></script>
<script type="text/javascript" src="../js/noty/packaged/jquery.noty.packaged.js"></script>

<script type="text/javascript">

Expand Down
2 changes: 1 addition & 1 deletion demo/usingMaxVisible.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ <h3>maxVisible: 3</h3>
<script src="jquery-1.7.2.min.js"></script>

<!-- noty -->
<script type="text/javascript" src="../js/noty/packaged/jquery.noty.packaged.min.js"></script>
<script type="text/javascript" src="../js/noty/packaged/jquery.noty.packaged.js"></script>

<script type="text/javascript">

Expand Down
2 changes: 1 addition & 1 deletion demo/usingWithAnimate.css.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
<script src="jquery-1.7.2.min.js"></script>

<!-- noty -->
<script type="text/javascript" src="../js/noty/packaged/jquery.noty.packaged.min.js"></script>
<script type="text/javascript" src="../js/noty/packaged/jquery.noty.packaged.js"></script>
<script type="text/javascript" src="notification_html.js"></script>

<script type="text/javascript">
Expand Down
2 changes: 1 addition & 1 deletion demo/usingWithButtons.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
<script src="jquery-1.7.2.min.js"></script>

<!-- noty -->
<script type="text/javascript" src="../js/noty/packaged/jquery.noty.packaged.min.js"></script>
<script type="text/javascript" src="../js/noty/packaged/jquery.noty.packaged.js"></script>

<script type="text/javascript">

Expand Down
2 changes: 1 addition & 1 deletion demo/usingWithButtons2.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
<script src="jquery-1.7.2.min.js"></script>

<!-- noty -->
<script type="text/javascript" src="../js/noty/packaged/jquery.noty.packaged.min.js"></script>
<script type="text/javascript" src="../js/noty/packaged/jquery.noty.packaged.js"></script>

<script type="text/javascript">

Expand Down
2 changes: 1 addition & 1 deletion demo/usingWithModal.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
<script src="jquery-1.7.2.min.js"></script>

<!-- noty -->
<script type="text/javascript" src="../js/noty/packaged/jquery.noty.packaged.min.js"></script>
<script type="text/javascript" src="../js/noty/packaged/jquery.noty.packaged.js"></script>

<script type="text/javascript">

Expand Down
2 changes: 1 addition & 1 deletion demo/usingWithOldOptions.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
<script src="jquery-1.7.2.min.js"></script>

<!-- noty -->
<script type="text/javascript" src="../js/noty/packaged/jquery.noty.packaged.min.js"></script>
<script type="text/javascript" src="../js/noty/packaged/jquery.noty.packaged.js"></script>

</body>
</html>
9 changes: 2 additions & 7 deletions 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.7
@version version: 2.3.8
@contributors https://github.com/needim/noty/graphs/contributors
@documentation Examples and Documentation - http://needim.github.com/noty/
Expand Down Expand Up @@ -30,16 +30,11 @@
if($.noty.themes[this.options.theme])
this.options.theme = $.noty.themes[this.options.theme];
else
options.themeClassName = this.options.theme;

delete options.layout;
delete options.theme;
this.options.themeClassName = this.options.theme;

this.options = $.extend({}, this.options, this.options.layout.options);
this.options.id = 'noty_' + (new Date().getTime() * Math.floor(Math.random() * 1000000));

this.options = $.extend({}, this.options, options);

// Build the noty dom initial structure
this._build();

Expand Down
9 changes: 2 additions & 7 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.7
@version version: 2.3.8
@contributors https://github.com/needim/noty/graphs/contributors
@documentation Examples and Documentation - http://needim.github.com/noty/
Expand Down Expand Up @@ -40,16 +40,11 @@
if($.noty.themes[this.options.theme])
this.options.theme = $.noty.themes[this.options.theme];
else
options.themeClassName = this.options.theme;

delete options.layout;
delete options.theme;
this.options.themeClassName = this.options.theme;

this.options = $.extend({}, this.options, this.options.layout.options);
this.options.id = 'noty_' + (new Date().getTime() * Math.floor(Math.random() * 1000000));

this.options = $.extend({}, this.options, options);

// Build the noty dom initial structure
this._build();

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.7",
"version" : "2.3.8",
"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.7",
"version": "2.3.8",
"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 6fe2cf8

Please sign in to comment.