My favorites | Sign in
Project Home Downloads Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions

Issue 30 attachment: section_doublerender_and_nomethod_errors.patch (1.4 KB)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
Index: /home/edmundo/workspace_aptana/substruct_trunk/vendor/plugins/substruct/app/controllers/admin/sections_controller.rb
===================================================================
--- /home/edmundo/workspace_aptana/substruct_trunk/vendor/plugins/substruct/app/controllers/admin/sections_controller.rb (revision 43)
+++ /home/edmundo/workspace_aptana/substruct_trunk/vendor/plugins/substruct/app/controllers/admin/sections_controller.rb (working copy)
@@ -45,7 +45,7 @@
if @section.save
render(:partial => 'section_list_row', :locals => {:section_list_row => @section})
else
- render_text ""
+ render :text => ""
end
end

@@ -57,13 +57,14 @@
render(:update) do |page|
page.alert "Something went wrong saving your section.\n\nRemember, section names have to be unique."
end
- end
- render(:update) do |page|
- page.replace "section_#{@section.id}", :partial => 'section_list_row', :locals => { :section_list_row => @section }
- page.sortable(
- 'section_list',
- :url => { :action => 'update_section_rank' }
- )
+ else
+ render(:update) do |page|
+ page.replace "section_#{@section.id}", :partial => 'section_list_row', :locals => { :section_list_row => @section }
+ page.sortable(
+ 'section_list',
+ :url => { :action => 'update_section_rank' }
+ )
+ end
end
end


Powered by Google Project Hosting