Fix homepage in structure, ajaxStop for structure edit, setForm in pageslide.js

This commit is contained in:
chris committed 2013-10-23 18:39:21 +08:00
1 parent 52fa11a429
commit 94c1d7d5a0
4 files changed
+16 -17

No files matched your search

+9 -1
View File
@@ -9,7 +9,15 @@ class PagesController < ApplicationController
if @item
delayed_impressionist(@item)
render_page
if params[:edit]
if request.referer && request.referer.ends_with?("admin/items")
redirect_to admin_page_url(@item)
else
render :file => "#{Rails.root}/public/403.html", :status => 403
end
else
render_page
end
else
redirect_to '/admin/dashboards',:notice=>t(:need_home)
# render :text => t(:need_home)