Commit 6203c212bfbef1e3edab5ef33116022cba816c52

Authored by Karpikau Andrei
1 parent b92fdbb7

check render block element

@@ -9,7 +9,7 @@ var csrf_token = $('meta[name=csrf-token]').attr('content'), @@ -9,7 +9,7 @@ var csrf_token = $('meta[name=csrf-token]').attr('content'),
9 $cell.append($content); 9 $cell.append($content);
10 10
11 $content.find('.edit').click(function(){ 11 $content.find('.edit').click(function(){
12 - var $block = $(this).closest('.col'), 12 + var $block = $(this).closest('.content-wrapper'),
13 structure_id = $block.data('id'); 13 structure_id = $block.data('id');
14 14
15 var $iframe = $('<iframe name="content-edit" style="width:500px;height:500px;position: absolute;top: 10%;left: 50%;transform: translateX(-50%);border: 1px solid black;z-index:10000;background:#FFFFFF;" src = "'+ edit_layer_url + '&structure_id=' + structure_id +'">Sorry your browser does not support inline frames.</iframe>'); 15 var $iframe = $('<iframe name="content-edit" style="width:500px;height:500px;position: absolute;top: 10%;left: 50%;transform: translateX(-50%);border: 1px solid black;z-index:10000;background:#FFFFFF;" src = "'+ edit_layer_url + '&structure_id=' + structure_id +'">Sorry your browser does not support inline frames.</iframe>');
@@ -19,7 +19,7 @@ var csrf_token = $('meta[name=csrf-token]').attr('content'), @@ -19,7 +19,7 @@ var csrf_token = $('meta[name=csrf-token]').attr('content'),
19 } 19 }
20 20
21 21
22 - $('.col').each(function(){ 22 + $('.content-wrapper').each(function(){
23 var $cell = $(this); 23 var $cell = $(this);
24 24
25 initCell($cell); 25 initCell($cell);
1 -<div class="" <%= @data_attributes %>> 1 +<div class="content-wrapper" <%= @data_attributes %>>
2 <%= @content %> 2 <%= @content %>
3 </div> 3 </div>
1 -<div class="col-md-<%= @cell['size'] %> col <%= @class_name %>" <%= @data_attributes %> > 1 +<div class="content-wrapper col-md-<%= @cell['size'] %> col <%= @class_name %>" <%= @data_attributes %> >
2 <%= @content %> 2 <%= @content %>
3 </div> 3 </div>
1 -<div class="row-fluid clearfix"> 1 +<div class="content-wrapper row-fluid clearfix">
2 <%= @content %> 2 <%= @content %>
3 </div> 3 </div>
1 module Kanjai 1 module Kanjai
2 - VERSION = "0.0.181" 2 + VERSION = "0.0.182"
3 end 3 end