caboose-cms 0.8.56 → 0.8.57
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 46cad8ef370ab797b7f36acf01536f50c4194d33
|
4
|
+
data.tar.gz: 8f8db6b566034b216a86337aacf9aab8fdec23d7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f6b53ec696e54189d76d3726f100e194d86a5161b7c840f6a04a18d729814745ca7bc81381aacd2d1760962beb26eaf93e62d12684a4cb0aeb4e042dc46276a7
|
7
|
+
data.tar.gz: 10473972752dd1cd0f8aa7646aeff8501c72970ae4ca975613a8b689c5130b8cbe76592caecf289cc6c60d0bf45c8139cf060e926cc88454e94fb29f8742e47e
|
@@ -260,8 +260,9 @@ PageContentController.prototype = {
|
|
260
260
|
);
|
261
261
|
}
|
262
262
|
}
|
263
|
-
|
264
|
-
$('#block_' + b.id).attr('onclick','').unbind('click');
|
263
|
+
|
264
|
+
$('#block_' + b.id + ' *').attr('onclick', '').unbind('click');
|
265
|
+
$('#block_' + b.id).attr('onclick','').unbind('click');
|
265
266
|
$('#block_' + b.id).click(function(e) {
|
266
267
|
e.preventDefault();
|
267
268
|
e.stopPropagation();
|
@@ -115,7 +115,7 @@ var BlockModalController = ModalController.extend({
|
|
115
115
|
}
|
116
116
|
}
|
117
117
|
$('#modal_content').replaceWith(div);
|
118
|
-
that.
|
118
|
+
that.render_child_blocks();
|
119
119
|
that.autosize();
|
120
120
|
},
|
121
121
|
|
@@ -193,16 +193,16 @@ var BlockModalController = ModalController.extend({
|
|
193
193
|
Block Rendering
|
194
194
|
*****************************************************************************/
|
195
195
|
|
196
|
-
|
196
|
+
render_child_blocks: function()
|
197
197
|
{
|
198
198
|
var that = this;
|
199
199
|
if (that.block.block_type.field_type != 'block' && that.block.children.length == 0)
|
200
200
|
return;
|
201
201
|
|
202
|
-
$.each(that.block.children, function(i, b) { that.
|
202
|
+
$.each(that.block.children, function(i, b) { that.render_child_block(b); });
|
203
203
|
},
|
204
204
|
|
205
|
-
|
205
|
+
render_child_block: function(b)
|
206
206
|
{
|
207
207
|
var that = this;
|
208
208
|
if (that.complex_field_types.indexOf(b.block_type.field_type) > -1)
|
@@ -73,16 +73,18 @@ module Caboose
|
|
73
73
|
def admin_json
|
74
74
|
return if !user_is_allowed('media', 'view')
|
75
75
|
render :json => false and return if @site.nil?
|
76
|
-
|
77
|
-
#cat = id ? MediaCategory.find(id) : MediaCategory.top_category(@site.id)
|
78
|
-
#render :json => cat.api_hash
|
79
|
-
|
76
|
+
|
80
77
|
arr = Media.where(:media_category_id => params[:media_category_id]).reorder(:sort_order).all
|
81
|
-
render :json => arr.collect{ |m| m.api_hash }
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
78
|
+
render :json => arr.collect{ |m| m.api_hash }
|
79
|
+
end
|
80
|
+
|
81
|
+
# @route GET /admin/media/:id/json
|
82
|
+
def admin_json_single
|
83
|
+
return if !user_is_allowed('media', 'view')
|
84
|
+
render :json => false and return if @site.nil?
|
85
|
+
|
86
|
+
m = Media.where(:id => params[:id]).first
|
87
|
+
render :json => m.api_hash
|
86
88
|
end
|
87
89
|
|
88
90
|
# @route GET /admin/media/last-upload-processed
|
data/lib/caboose/version.rb
CHANGED