You can change the page parent now at pages/edit.
* Increased text area size for better layout with the new feature. * Closes #39
This commit is contained in:
parent
7ec5381ca0
commit
8927a80246
4 changed files with 8 additions and 5 deletions
|
|
@ -60,6 +60,8 @@ class PagesController < ApplicationController
|
|||
render :action => 'edit'
|
||||
else
|
||||
if @page.save
|
||||
@page.parent_id = parent_id if (!params[:parent_id].blank? \
|
||||
and params[:parent_id] != @page_id)
|
||||
flash[:notice] = 'Seite wurde aktualisiert.'
|
||||
redirect_to wiki_page_path(@page.permalink)
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue