Commit 807a168a61744ccae6c0a49939ab04ec5e51f9aa

Authored by Andrey Karpikov
1 parent 49366f62

check preview content in admin part

@@ -18,7 +18,7 @@ module Kanjai @@ -18,7 +18,7 @@ module Kanjai
18 if client_view == false and row['attributes']['type'] == 'block' 18 if client_view == false and row['attributes']['type'] == 'block'
19 html_attributes['data-id'] = row['attributes']['id'] 19 html_attributes['data-id'] = row['attributes']['id']
20 page_content = page_data.page_contents.where(:structure_id => row['attributes']['id']).first 20 page_content = page_data.page_contents.where(:structure_id => row['attributes']['id']).first
21 - row_html = '<div class="col-html">' + (page_content.nil? ? '' : page_content.get_content) + '</div>' 21 + row_html = '<div class="col-html">' + (page_content.nil? ? '' : page_content.get_content_frontend) + '</div>'
22 end 22 end
23 23
24 if client_view == false and row['attributes']['type'] == 'row' 24 if client_view == false and row['attributes']['type'] == 'row'
@@ -31,7 +31,7 @@ module Kanjai @@ -31,7 +31,7 @@ module Kanjai
31 ActionController::Base.helpers.concat(row_html.html_safe) 31 ActionController::Base.helpers.concat(row_html.html_safe)
32 row["cells"].each do |cell| 32 row["cells"].each do |cell|
33 page_content = page_data.page_contents.where(:structure_id => cell['id']).first 33 page_content = page_data.page_contents.where(:structure_id => cell['id']).first
34 - html = page_content.nil? ? '' : page_content.get_content 34 + html = page_content.nil? ? '' : page_content.get_content_frontend
35 35
36 cell_class_name = '' 36 cell_class_name = ''
37 37
1 module Kanjai 1 module Kanjai
2 - VERSION = "0.0.317" 2 + VERSION = "0.0.318"
3 end 3 end