Fix sitemap in page edit

This commit is contained in:
chris committed 2013-02-19 17:39:43 +08:00
1 parent 17ac564fbb
commit 1f11293fbe
2 files changed
+1 -24

No files matched your search

+1 -1
View File
@@ -214,7 +214,7 @@ module ParserCommon
# sitemap
def parse_sitemaps_edit(body = nil, page = nil, edit=nil)
sitemap = body.css('sitemap').first
url = admin_site_sitemap_frontend_path(@site)
url = front_show_sitemap_path
options = "?inner=true"
fragment = Nokogiri::HTML::DocumentFragment.new(body, "<div class='dymanic_load' path='#{url + options}'></div>")
sitemap.swap(fragment)