aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2005-03-13 18:06:58 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2005-03-13 18:06:58 +0000
commit0f4ee4b810728fa5fd32cfe14501fc3d8eaf6051 (patch)
tree537e7f4c96a94a5ef1b6e137666aa36a52d53fca /actionpack/lib/action_view
parent66ed733ce5abf64a0650e4359f1dff88c2dfd1b4 (diff)
downloadrails-0f4ee4b810728fa5fd32cfe14501fc3d8eaf6051.tar.gz
rails-0f4ee4b810728fa5fd32cfe14501fc3d8eaf6051.tar.bz2
rails-0f4ee4b810728fa5fd32cfe14501fc3d8eaf6051.zip
Deal with Safari garbage and allow html_options
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@897 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib/action_view')
-rw-r--r--actionpack/lib/action_view/helpers/javascript_helper.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/actionpack/lib/action_view/helpers/javascript_helper.rb b/actionpack/lib/action_view/helpers/javascript_helper.rb
index bd22ffb0c0..023d67fd48 100644
--- a/actionpack/lib/action_view/helpers/javascript_helper.rb
+++ b/actionpack/lib/action_view/helpers/javascript_helper.rb
@@ -24,8 +24,8 @@ module ActionView
# Examples:
# link_to_remote "Delete this post", :update => "posts", :url => { :action => "destroy", :id => post.id }
# link_to_remote(image_tag("refresh"), :update => "emails", :url => { :action => "list_emails" })
- def link_to_remote(name, options = {})
- link_to_function(name, remote_function(options))
+ def link_to_remote(name, options = {}, html_options = {})
+ link_to_function(name, remote_function(options), html_options)
end
def form_remote_tag(options = {})
@@ -53,7 +53,7 @@ module ActionView
},
present: function() {
- for(i = 0; i < arguments.length; i++) { if (o(arguments[i]).value = '') { return false; } }
+ for(i = 0; i < arguments.length; i++) { if (o(arguments[i]).value == '') { return false; } }
return true;
}
}
@@ -76,7 +76,7 @@ module ActionView
req = xml_http_request_object();
req.open(type, url, async);
- req.send(parameters);
+ req.send(parameters ? parameters + "&_=" : parameters);
return req.responseText;
}