lib/gitdocs/views/edit.haml in gitdocs-0.3.1 vs lib/gitdocs/views/edit.haml in gitdocs-0.3.2

- old
+ new

@@ -11,10 +11,10 @@ %span.path= request.path_info.empty? ? '/' : request.path_info %a{ :href => "?mode=raw" } (raw) %a{ :href => "?mode=edit" } (edit) %a{ :href => "?mode=delete", :onclick => "javascript:return confirm('Are you sure?')" } (delete) -%form{ :class => "edit", :action => "/#{idx}#{request.path_info}/save", :method => "post", :style => "display:none;" } +%form{ :class => "edit", :action => "/#{idx}#{request.path_info}?mode=save", :method => "post", :style => "display:none;" } #editor %textarea{ :id => 'data', :name => "data" }= preserve contents %input{ :type => 'submit', :value => "Save" } %a{ :href => "/#{idx}#{request.path_info}" } Cancel %input{ :type => 'hidden', :class => 'filename', :value => request.path_info }