Changeset 897
- Timestamp:
- 03/13/05 18:06:58 (4 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/actionpack/lib/action_view/helpers/javascript_helper.rb
r896 r897 25 25 # link_to_remote "Delete this post", :update => "posts", :url => { :action => "destroy", :id => post.id } 26 26 # link_to_remote(image_tag("refresh"), :update => "emails", :url => { :action => "list_emails" }) 27 def link_to_remote(name, options = {} )28 link_to_function(name, remote_function(options) )27 def link_to_remote(name, options = {}, html_options = {}) 28 link_to_function(name, remote_function(options), html_options) 29 29 end 30 30 … … 54 54 55 55 present: function() { 56 for(i = 0; i < arguments.length; i++) { if (o(arguments[i]).value = '') { return false; } }56 for(i = 0; i < arguments.length; i++) { if (o(arguments[i]).value == '') { return false; } } 57 57 return true; 58 58 } … … 77 77 req = xml_http_request_object(); 78 78 req.open(type, url, async); 79 req.send(parameters );79 req.send(parameters ? parameters + "&_=" : parameters); 80 80 81 81 return req.responseText;