update sale audit
This commit is contained in:
@@ -38,24 +38,7 @@
|
||||
<p>Please wait...</p>
|
||||
</div>
|
||||
</div>
|
||||
<% flash.each do |type, message| %>
|
||||
<% puts type
|
||||
puts message
|
||||
puts "ssssssssssssss"
|
||||
if type == "notice"
|
||||
color = "alert-success"
|
||||
elsif type == "error"
|
||||
color = "alert-danger"
|
||||
elsif type == "warning"
|
||||
color = "alert-warning"
|
||||
else
|
||||
color = "bg-black"
|
||||
end %>
|
||||
|
||||
<p id="noti" class="hidden noti" data-placement-from="top" data-message="<%=message%>" data-placement-align="center"
|
||||
data-animate-enter="" data-animate-exit="" data-color-name="<%=color%>" >
|
||||
</p>
|
||||
<% end %>
|
||||
|
||||
<!-- #END# Page Loader -->
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
@@ -160,15 +143,14 @@
|
||||
$(document).on('turbolinks:load', function () {
|
||||
|
||||
// for Notificaiotn message
|
||||
console.log("hi");
|
||||
|
||||
var placementFrom = $("#noti").attr('data-placement-from');
|
||||
var placementAlign = $("#noti").attr('data-placement-align');
|
||||
var animateEnter = $("#noti").attr('data-animate-enter');
|
||||
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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user