-
-
Save creich/2973937 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%= form_for @time_tracker, :url => {:action => :stop}, | |
:html => {:class => "time-tracker-form", | |
:onchange => "<my-suoer-prototype-request>", | |
#:update => {:success => :nothing, :failure => "time-tracker-control"}, | |
:url => {:controller => :time_trackers, :action => "update", :format => :json}, | |
:method => :put, | |
:with => " Form.serializeElements( $(this).getInputs() ) ")} do |f| %> | |
<!-- TODO localize placeholders / add labels --> | |
<%= f.label l(:time_tracker_label_current_task) %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%= form_for @time_tracker, :url => {:action => :stop}, | |
:html => {:class => "time-tracker-form", | |
:onchange => remote_function( | |
:complete => "function(response) { alert('response.responseJson') }", | |
#:update => {:success => :nothing, :failure => "time-tracker-control"}, | |
:url => {:controller => :time_trackers, :action => "update", :format => :json}, | |
:method => :put, | |
:with => " Form.serializeElements( $(this).getInputs() ) ")} do |f| %> | |
<!-- TODO localize placeholders / add labels --> | |
<%= f.label l(:time_tracker_label_current_task) %> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment