This project is archived and is in readonly mode.

#3919 ✓resolved
Quin Hoxie

[PATCH] Multiple Improvements to UJS Drivers

Reported by Quin Hoxie | February 10th, 2010 @ 09:04 AM | in 3.0.2

Brief summary of changes:

Prototype - http://github.com/qhoxie/prototype-ujs
4b8ae92 Remove event.element() in favor of event.findElement()
5a06bee Treat data-remote as a boolean attribute in selectors
339aa6a Only support href as url on non-form elements

jQuery - http://github.com/qhoxie/jquery-ujs
be329c5 Whitespace consistency
b17c7bb Only create csrf input if the data is provided
16363f7 Simplify metadata inputs to strings and a single call to append()
0999420 Treat data-remote as a boolean attribute in selectors
5ae3f93 Better symmetry in negation of data-remote selector
2e8f578 Utilize dataType option to manage Accept header
de7011f Throw exception if no url is provided in the remote call

Diffs are attached. I can break them out if necessary.

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

People watching this ticket

Pages