This project is archived and is in readonly mode.

#2202 ✓invalid
Rusty Burchfield

IE7 does not respect "return false;" in onclick

Reported by Rusty Burchfield | March 10th, 2009 @ 07:39 PM | in 2.x

Source:
http://github.com/rails/rails/bl...


when confirm && popup
  "if (#{confirm_javascript_function(confirm)}) { #{popup_javascript_function(popup)} };return false;"
when confirm && method
  "if (#{confirm_javascript_function(confirm)}) { #{method_javascript_function(method)} };return false;"
when confirm
  "return #{confirm_javascript_function(confirm)};"
when method
  "#{method_javascript_function(method, url, href)}return false;"
when popup
  "#{popup_javascript_function(popup)}return false;"

IE7 requires the following.
http://dev.rubyonrails.org/brows...


event.returnValue = false;

References:
http://www.ontola.com/javascript...
http://dev.rubyonrails.org/brows...

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>

Attachments

Pages