Showing
5 changed files
with
6 additions
and
6 deletions
| @@ -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); |