minor fixes
This commit is contained in:
+2
-2
@@ -165,6 +165,7 @@ pluginOptions =
|
||||
arrowShow: true
|
||||
arrowSize: 5
|
||||
breakNewLines: true
|
||||
# autoReposition: true
|
||||
elementPosition: 'bottom'
|
||||
globalPosition: 'top right'
|
||||
style: 'bootstrap'
|
||||
@@ -191,7 +192,6 @@ defaults = (opts) ->
|
||||
createElem = (tag) ->
|
||||
$ "<#{tag}></#{tag}>"
|
||||
|
||||
|
||||
# references to global anchor positions
|
||||
globalAnchors = {}
|
||||
|
||||
@@ -478,7 +478,7 @@ class Notification
|
||||
#escape
|
||||
unless @rawHTML
|
||||
data = encode(data)
|
||||
data = data.replace(/\n/,'<br/>') if @options.breakNewLines
|
||||
data = data.replace(/\n/g,'<br/>') if @options.breakNewLines
|
||||
#update content
|
||||
@text.html(data)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user