summaryrefslogtreecommitdiff
path: root/app/views/nodes
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/nodes')
-rw-r--r--app/views/nodes/edit.html.erb14
-rw-r--r--app/views/nodes/new.html.erb2
2 files changed, 7 insertions, 9 deletions
diff --git a/app/views/nodes/edit.html.erb b/app/views/nodes/edit.html.erb
index 1c19410..13b78fc 100644
--- a/app/views/nodes/edit.html.erb
+++ b/app/views/nodes/edit.html.erb
@@ -45,14 +45,12 @@
45 <div class="node_description">parent</div> 45 <div class="node_description">parent</div>
46 <div class="node_content"> 46 <div class="node_content">
47 <%= text_field_tag :move_to_search_term, @node.parent.title rescue "" %> 47 <%= text_field_tag :move_to_search_term, @node.parent.title rescue "" %>
48 <div id="search_results"> 48 <div id="move_to_search_results" class="search_results"></div>
49 49 <%= f.hidden_field(
50 </div> 50 :staged_parent_id,
51 <%= f.hidden_field( 51 :value => @node.staged_parent_id || @node.parent_id
52 :staged_parent_id, 52 )
53 :value => @node.staged_parent_id || @node.parent_id 53 %>
54 )
55 %>
56 </div> 54 </div>
57 55
58 <%= fields_for @page do |d| %> 56 <%= fields_for @page do |d| %>
diff --git a/app/views/nodes/new.html.erb b/app/views/nodes/new.html.erb
index afc632f..bb7e078 100644
--- a/app/views/nodes/new.html.erb
+++ b/app/views/nodes/new.html.erb
@@ -34,7 +34,7 @@
34 <div class="node_content"> 34 <div class="node_content">
35 <%= text_field_tag :parent_search_term, @parent_name %> 35 <%= text_field_tag :parent_search_term, @parent_name %>
36 <%= hidden_field_tag :parent_id, @parent_id %> 36 <%= hidden_field_tag :parent_id, @parent_id %>
37 <div id="search_results"></div> 37 <div id="parent_search_results" class="search_results"></div>
38 </div> 38 </div>
39 </div> 39 </div>
40 40