Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(function() {
- <% jj = 0 %>;
- var intv = setInterval(function(){
- <% if jj < 5 %>;
- $( "#dialog-message" ).html("<%= escape_javascript(render partial:
- 'messages/message_dialog', locals: { mrow: @mseries[jj] }) %>");
- $(function() {
- $( "#dialog-message" ).dialog({
- modal: false,
- minWidth: 500
- });
- });
- <% jj = jj + 1 %>;
- setTimeout(function(){
- $( "#dialog-message" ).dialog("close");
- },3000);
- <% else %>;
- clearInterval(intv);
- <% end %>;
- },5000);
- });
- def show
- @mseries = Message.all
- end
- <p><%= mrow.entry %></p>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement