|
...
|
...
|
@@ -109,18 +109,31 @@ jQuery(document).ready(function(){ |
|
109
|
109
|
delete_cell_url = $block.data('delete_cell_url'),
|
|
110
|
110
|
mas_cell_id = [];
|
|
111
|
111
|
|
|
112
|
|
- $row.find('.col').each(function(){
|
|
113
|
|
- mas_cell_id.push($(this).data('id'));
|
|
114
|
|
- });
|
|
|
112
|
+ if($row.hasClass('row-element-row')){
|
|
|
113
|
+ $row.find('.col').each(function(){
|
|
|
114
|
+ mas_cell_id.push($(this).data('id'));
|
|
|
115
|
+ });
|
|
115
|
116
|
|
|
116
|
|
- jQuery.ajax({
|
|
117
|
|
- type: 'POST',
|
|
118
|
|
- url: delete_cell_url,
|
|
119
|
|
- data: {structure_ids: mas_cell_id},
|
|
120
|
|
- success: function (data) {
|
|
121
|
|
- $row.remove();
|
|
122
|
|
- }
|
|
123
|
|
- });
|
|
|
117
|
+ jQuery.ajax({
|
|
|
118
|
+ type: 'POST',
|
|
|
119
|
+ url: delete_cell_url,
|
|
|
120
|
+ data: {structure_ids: mas_cell_id},
|
|
|
121
|
+ success: function (data) {
|
|
|
122
|
+ $row.remove();
|
|
|
123
|
+ }
|
|
|
124
|
+ });
|
|
|
125
|
+ }
|
|
|
126
|
+ if($row.hasClass('row-element-block')){
|
|
|
127
|
+
|
|
|
128
|
+ jQuery.ajax({
|
|
|
129
|
+ type: 'POST',
|
|
|
130
|
+ url: delete_cell_url,
|
|
|
131
|
+ data: {structure_id: $row.data('id')},
|
|
|
132
|
+ success: function (data) {
|
|
|
133
|
+ $row.remove();
|
|
|
134
|
+ }
|
|
|
135
|
+ });
|
|
|
136
|
+ }
|
|
124
|
137
|
}
|
|
125
|
138
|
});
|
|
126
|
139
|
|
...
|
...
|
|