test for turbolink

This commit is contained in:
Yan
2017-10-30 14:33:05 +06:30
parent 558ec84819
commit 7beb4e7563
10 changed files with 37 additions and 39 deletions

View File

@@ -39,9 +39,7 @@
</div>
</div>
<% flash.each do |type, message| %>
<% puts type
puts message
puts "ssssssssssssss"
<%
if type == "notice"
color = "alert-success"
elsif type == "error"
@@ -167,8 +165,7 @@
var animateExit = $("#noti").attr('data-animate-exit');
var colorName = $("#noti").attr('data-color-name');
var text = $("#noti").attr('data-message');
console.log(text);
console.log(colorName);
if (text != null || colorName != null){
showNotification(colorName, text, placementFrom, placementAlign, animateEnter, animateExit);
}