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

Ticket #3717 (new defect)

Opened 2 years ago

Last modified 1 year ago

[PATCH] InPlaceEditor with submitOnBlur enabled crashes Safari when hitting return

Reported by: raidel@onemail.at Assigned to: Clay
Priority: normal Milestone:
Component: script.aculo.us Version: 1.0.0
Severity: normal Keywords: InPlaceEditor
Cc:

Description

Safari crashes every time when you hit the return key in an InPlaceEditor-field with SubmitOnBlur: true. (It sends the value to the server before crashing) All you need to reproduce is something like

Feld: <span id="test">test</span><br />
<script language="JavaScript">new Ajax.InPlaceEditor('test', '/test', { submitOnBlur: true });</script>

I used Scriptaculous 1.5.1, Prototype 1.5.0pre0 (also tried 1.4.0). Safari is 2.0.3 and MacOS X 10.4.4.

Attachments

InPlaceEditorSubmitOnBlurCrashOnSafari.diff (1.3 kB) - added by ishikawa_takanori on 07/03/07 14:15:04.
Added InPlaceEditor#onBlur

Change History

08/24/06 23:06:10 changed by Clay <clay@killersoft.com>

  • keywords set to InPlaceEditor.
  • owner changed from Rails to anonymous.
  • status changed from new to assigned.

08/24/06 23:06:30 changed by Clay <clay@killersoft.com>

  • owner changed from anonymous to Clay.
  • status changed from assigned to new.

07/03/07 14:14:03 changed by ishikawa_takanori

  • summary changed from InPlaceEditor with submitOnBlur enabled crashes Safari when hitting return to [PATCH] InPlaceEditor with submitOnBlur enabled crashes Safari when hitting return.

I encountered the same problem when hitting textarea focus ring on Safari (submitOnBlur: true). The patch below fixes this problem.

07/03/07 14:15:04 changed by ishikawa_takanori

  • attachment InPlaceEditorSubmitOnBlurCrashOnSafari.diff added.

Added InPlaceEditor#onBlur