Change slide position based on notification position - closes #137

This commit is contained in:
Paul-Vincent Roll
2016-04-05 13:45:18 +02:00
parent 0006e3b4bd
commit aba0b29c77
2 changed files with 149 additions and 10 deletions

View File

@@ -27,6 +27,7 @@ Module.register('alert',{
return ['ns-default.css'];
},
show_notification: function (message) {
if (this.config.effect == "slide"){this.config.effect=this.config.effect + "-" + this.config.position}
message = "<span class='thin' style='line-height: 35px; font-size:24px' color='#4A4A4A'>" + message.title + "</span><br /><span class='light' style='font-size:28px;line-height: 30px;'>" + message.message + "</span>"
new NotificationFx({
message : message,