Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Changeset 897

Show
Ignore:
Timestamp:
03/13/05 18:06:58 (4 years ago)
Author:
david
Message:

Deal with Safari garbage and allow html_options

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/actionpack/lib/action_view/helpers/javascript_helper.rb

    r896 r897  
    2525      #  link_to_remote "Delete this post", :update => "posts", :url => { :action => "destroy", :id => post.id } 
    2626      #  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
    2929      end 
    3030 
     
    5454       
    5555      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; } } 
    5757        return true; 
    5858      } 
     
    7777      req = xml_http_request_object(); 
    7878      req.open(type, url, async); 
    79       req.send(parameters); 
     79      req.send(parameters ? parameters + "&_=" : parameters); 
    8080       
    8181      return req.responseText;