Guest User

Untitled

a guest
Apr 25th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. window.addEvent("domready",function(){
  2. observe_forms();
  3. });
  4.  
  5. function observe_forms(){
  6. $$('#spaces_list form').each(function(form){
  7.  
  8. form.set('send', {
  9. update: $('spaces'),
  10. method: 'post',
  11. onComplete: function(){
  12. form.remove();
  13. },
  14. });
  15.  
  16. form.addEvent('submit', function(evt){
  17. evt.stop();
  18. form.send();
  19. });
  20. });
  21.  
  22. };
Add Comment
Please, Sign In to add comment