caboose-cms 0.9.153 → 0.9.154
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/caboose/admin_media_index.js +2 -1
- data/app/assets/javascripts/caboose/block_modal_controllers/media_modal_controller.js +2 -1
- data/app/views/caboose/blocks/admin_edit_file.html.erb +2 -1
- data/app/views/caboose/blocks/admin_edit_image.html.erb +2 -1
- data/app/views/caboose/media/admin_index.html.erb +2 -1
- data/lib/caboose/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b5362ac8198ce6669568e531ca0957fedb682877
|
4
|
+
data.tar.gz: 43dfc3ce1767eed54ef1522048dceffb4a46c6bf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4eeecffc4dff2e9a5df29f6803ab3ff2ce1f02549af7befac779ba8b7388ff630c253cbee328c437110e98f14c1211fca4017374a952b7c0393a2a5d344b8019
|
7
|
+
data.tar.gz: c9efc6e17eacb86639b27bd1cb1be4493949d4a79ae877435054a7abe2155b0d65760ed11e0e1d08a64d0c85d79d33bc873cc0f1c0732af1da7f7bb62c6a04be
|
@@ -17,6 +17,7 @@ MediaController.prototype = {
|
|
17
17
|
allow_edit: false,
|
18
18
|
feather_editor: false,
|
19
19
|
last_upload_processed: false,
|
20
|
+
assets_path: false,
|
20
21
|
ajax_count: 0,
|
21
22
|
ajax_limit: 20,
|
22
23
|
|
@@ -343,7 +344,7 @@ MediaController.prototype = {
|
|
343
344
|
var ext = m.original_name.match(/\.[0-9a-z]+$/i);
|
344
345
|
li.addClass('empty');
|
345
346
|
if (ext && ext.length > 0)
|
346
|
-
li.append($('<img/>').attr('src', '
|
347
|
+
li.append($('<img/>').attr('src', that.assets_path + 'caboose/file_types/' + ext[0].replace(".","").toLowerCase() + '.png').addClass('file-icon').attr("width","80").attr("height","80"));
|
347
348
|
}
|
348
349
|
if (that.selected_media.indexOf(m.id) > -1)
|
349
350
|
li.addClass('selected ui-selected');
|
@@ -13,6 +13,7 @@ var MediaModalController = BlockModalController.extend({
|
|
13
13
|
refresh_unprocessed_images: false,
|
14
14
|
selected_media: false,
|
15
15
|
uploader: false,
|
16
|
+
assets_path: false,
|
16
17
|
upload_extensions: "jpg,jpeg,png,gif,tif,tiff,pdf,doc,docx,odt,odp,ods,ppt,pptx,xls,xlsx,zip,tgz,csv,txt",
|
17
18
|
file_view: 'thumbnail',
|
18
19
|
|
@@ -204,7 +205,7 @@ var MediaModalController = BlockModalController.extend({
|
|
204
205
|
var ext = m.original_name.match(/\.[0-9a-z]+$/i);
|
205
206
|
li.addClass('empty');
|
206
207
|
if (ext && ext.length > 0)
|
207
|
-
li.append($('<img/>').attr('src', '
|
208
|
+
li.append($('<img/>').attr('src', that.assets_path + 'caboose/file_types/' + ext[0].replace(".","").toLowerCase() + '.png').addClass('file-icon').attr("width","80").attr("height","80"));
|
208
209
|
}
|
209
210
|
|
210
211
|
//if (that.selected_media.indexOf(m.id) > -1)
|
@@ -85,7 +85,8 @@ $(document).ready(function() {
|
|
85
85
|
aws_access_key_id: '<%= raw @aws_access_key_id %>',
|
86
86
|
policy: '<%= raw @policy %>',
|
87
87
|
signature: '<%= raw @signature %>',
|
88
|
-
refresh_unprocessed_images: false
|
88
|
+
refresh_unprocessed_images: false,
|
89
|
+
assets_path: "<%= Rails.env.production? ? ('https://' + Caboose::cdn_domain + '/assets/') : '/assets/' %>"
|
89
90
|
});
|
90
91
|
});
|
91
92
|
|
@@ -85,7 +85,8 @@ $(document).ready(function() {
|
|
85
85
|
aws_access_key_id: '<%= raw @aws_access_key_id %>',
|
86
86
|
policy: '<%= raw @policy %>',
|
87
87
|
signature: '<%= raw @signature %>',
|
88
|
-
refresh_unprocessed_images: false
|
88
|
+
refresh_unprocessed_images: false,
|
89
|
+
assets_path: "<%= Rails.env.production? ? ('https://' + Caboose::cdn_domain + '/assets/') : '/assets/' %>"
|
89
90
|
});
|
90
91
|
});
|
91
92
|
|
@@ -35,7 +35,8 @@ $(document).ready(function() {
|
|
35
35
|
policy: '<%= raw @policy %>',
|
36
36
|
signature: '<%= raw @signature %>',
|
37
37
|
refresh_unprocessed_images: true,
|
38
|
-
allow_edit: true
|
38
|
+
allow_edit: true,
|
39
|
+
assets_path: "<%= Rails.env.production? ? ('https://' + Caboose::cdn_domain + '/assets/') : '/assets/' %>"
|
39
40
|
});
|
40
41
|
});
|
41
42
|
|
data/lib/caboose/version.rb
CHANGED