minor fixes

This commit is contained in:
Jaime Pillora
2013-06-21 09:44:21 +10:00
parent 74c55d476e
commit 00013d1865
6 changed files with 17 additions and 17 deletions
+4 -4
View File
@@ -1,8 +1,8 @@
/** Notify.js - v0.0.1 - 2013/06/14
/** Notify.js - v0.0.1 - 2013/06/21
* http://notifyjs.com/
* Copyright (c) 2013 Jaime Pillora - MIT
*/
(function(window,document,undefined) {
(function(window,document,$,undefined) {
'use strict';
var Notification, addStyle, coreStyle, createElem, defaults, encode, getAnchorElement, getStyle, globalAnchors, hAligns, incr, inherit, insertCSS, mainPositions, opposites, parsePosition, pluginClassName, pluginName, pluginOptions, positions, realign, stylePrefixes, styles, vAligns,
@@ -436,7 +436,7 @@ Notification = (function() {
if (!this.rawHTML) {
data = encode(data);
if (this.options.breakNewLines) {
data = data.replace(/\n/, '<br/>');
data = data.replace(/\n/g, '<br/>');
}
}
this.text.html(data);
@@ -506,7 +506,7 @@ $(function() {
});
});
}(window,document));
}(window,document,jQuery));
$.notify.addStyle("bootstrap", {
html: "<div>\n<span data-notify-text></span>\n</div>",