Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- window.addEvent("domready",function(){
- observe_forms();
- });
- function observe_forms(){
- $$('#spaces_list form').each(function(form){
- form.set('send', {
- update: $('spaces'),
- method: 'post',
- onComplete: function(){
- form.remove();
- },
- });
- form.addEvent('submit', function(evt){
- evt.stop();
- form.send();
- });
- });
- };
Add Comment
Please, Sign In to add comment