summaryrefslogtreecommitdiff
path: root/views/model_name_edit.haml
diff options
context:
space:
mode:
authormr <mr@mrautenberg.de>2011-05-23 13:38:25 +0200
committermr <mr@mrautenberg.de>2011-05-23 13:38:25 +0200
commit1b38f31db88255d90947ad5b4d2b088988ce8bbd (patch)
treeb9e710986fd7e9cf00636c5a46a4fdfd4a99c037 /views/model_name_edit.haml
parent6f161255e47a2198624ae1bc7149b45a07a32bc9 (diff)
parentcfa443a8e93bd6f0e574c7c96f4cb0895a17c6f4 (diff)
Merge branch 'release/2.0.0'v2.0.0
Diffstat (limited to 'views/model_name_edit.haml')
-rw-r--r--views/model_name_edit.haml7
1 files changed, 3 insertions, 4 deletions
diff --git a/views/model_name_edit.haml b/views/model_name_edit.haml
index aec59fc..d92c68a 100644
--- a/views/model_name_edit.haml
+++ b/views/model_name_edit.haml
@@ -1,5 +1,5 @@
-- js = "$('#cancel_#{model.id}').editModel('GET', {id: '#{model.id}', mode: 'show'});\n "
-- js = "$('#save_#{model.id}').saveModel('POST', {id: '#{model.id}', mode: 'show'});\n "
+- js = "$('#cancel_#{model.id}').cancelEdit({id: '#{model.id}', mode: 'show'});\n "
+- js += "$('#save_#{model.id}').saveModel({id: '#{model.id}', mode: 'show'});\n "
:javascript
$(function() {
#{js}
@@ -10,5 +10,4 @@
%input{:type => 'hidden', :name => 'subjectid', :id => 'subjectid', :value => session[:subjectid]}
%input{ :type => "submit", :value => "Save", :id => "save_#{model.id}", :class => "edit_button"}
%span{:class => "edit_button"}
- %a{:href => url_for("/model/#{model.id}/name?mode=show"), :id => "cancel_#{model.id}"} Cancel
-
+ %a{:href => "#", :id => "cancel_#{model.id}"} Cancel