Sha256: 90e12fad28dce7d165885971f69b865f2dfe27fd96a008391cb4c9ff9a3a6c40
Contents?: true
Size: 1.74 KB
Versions: 29
Compression:
Stored size: 1.74 KB
Contents
<?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <title>form_remote_tag (ActionView::Helpers::PrototypeHelper)</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" /> </head> <body class="standalone-code"> <pre><span class="ruby-comment cmt"># File lib/remote_helpers.rb, line 106</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">form_remote_tag</span>(<span class="ruby-identifier">options</span> = {}) <span class="ruby-identifier">options</span>.<span class="ruby-identifier">reverse_merge!</span> <span class="ruby-identifier">:disable_form</span> =<span class="ruby-operator">></span> <span class="ruby-keyword kw">true</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">options</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-identifier">:disable_form</span>) <span class="ruby-identifier">add_callback_code!</span> <span class="ruby-identifier">options</span>, {<span class="ruby-identifier">:before</span> =<span class="ruby-operator">></span> <span class="ruby-value str">"var form = this; Form.disable(form)"</span>, <span class="ruby-identifier">:complete</span> =<span class="ruby-operator">></span> <span class="ruby-value str">"Form.enable(form)"</span>} <span class="ruby-keyword kw">end</span> <span class="ruby-identifier">form_remote_tag_old</span>(<span class="ruby-identifier">options</span>) <span class="ruby-keyword kw">end</span></pre> </body> </html>
Version data entries
29 entries across 29 versions & 1 rubygems