Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <% for i in 1..5 %>
- <a onclick="e = document.createEvent('Events');
- e.initEvent('pickupMail', true, false);
- m = document.getElementById('pmog_mailbox');
- m.setAttribute('server_url', '<%= host %>/locations/<%= @location.id %>/portals/<%= @portal.id %>/rate.js');
- m.setAttribute('params', '{\'portal\' : { \'rating\' : \'<%= i %>\'}}');
- m.setAttribute('method', 'post');
- m.setAttribute('action', 'submit');
- m.setAttribute('window_id', '<%= @portal.id %>');
- m.dispatchEvent(e);return false;" href="#"><%= i %> </a>
- <% end %>
Add Comment
Please, Sign In to add comment