This project is archived and is in readonly mode.
Add page.reload functionality
Reported by shuber | May 29th, 2008 @ 07:36 PM
A small addition to the ActionView::Helpers::PrototypeHelper for use in .rjs templates or render(:update) blocks. It simply sends window.location.reload(); to the browser.
Example:
respond_to do |format|
format.js do
render(:update) { |page| page.reload }
end
end
The attachment contains a tested patch.
Comments and changes to this ticket
-
Repository May 29th, 2008 @ 08:24 PM
- State changed from new to resolved
(from [1b0654ea41d15552c19f767570d4f551d617e742]) Ensure script/plugin installs ssh/git plugins. [#277 state:resolved]
Signed-off-by: Pratik Naik
-
Pratik May 29th, 2008 @ 08:28 PM
- State changed from resolved to open
Entered wrong ticket number. Silly me.
-
Chris Cherry May 30th, 2008 @ 03:06 AM
Seems useful, and its a pretty tiny change with only 3 lines of code and 4 for tests =) +1
-
Repository June 4th, 2008 @ 02:16 PM
- State changed from open to resolved
(from [30a0ebb3eb9fd4c8e4401bcaa4887eb1ce95defa]) Add RJS#page.reload. [#277 state:resolved]
Signed-off-by: Pratik Naik
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>