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

Changeset 7122

Show
Ignore:
Timestamp:
06/25/07 23:37:28 (1 year ago)
Author:
tobie
Message:

Prototype: tiny clean up to Form#request.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • spinoffs/prototype/branches/form/src/form.js

    r7120 r7122  
    9595    form = $(form), options = Object.clone(options || {}); 
    9696 
    97     var params = options.parameters; 
     97    var action = form.readAttribute('action') || window.location.href, 
     98      params = options.parameters; 
    9899    options.parameters = form.serialize(true); 
    99     var action = form.readAttribute('action') || ''; 
    100     if (action.empty()) action = window.location.href; 
    101100     
    102101    if (params) {