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

Changeset 7123

Show
Ignore:
Timestamp:
06/25/07 23:56:26 (1 year ago)
Author:
mislav
Message:

Prototype: revert [7122] and use blank(), it's better.

Files:

Legend:

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

    r7122 r7123  
    9595    form = $(form), options = Object.clone(options || {}); 
    9696 
    97     var action = form.readAttribute('action') || window.location.href, 
    98       params = options.parameters
     97    var params = options.parameters, action = form.readAttribute('action') || ''; 
     98    if (action.blank()) action = window.location.href
    9999    options.parameters = form.serialize(true); 
    100100