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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c41658663bbedf9b3ff201d188590a5d03d2ecfe
4
- data.tar.gz: 5ffb004d2f5a410410f4dae6e928593880a7485c
3
+ metadata.gz: b5362ac8198ce6669568e531ca0957fedb682877
4
+ data.tar.gz: 43dfc3ce1767eed54ef1522048dceffb4a46c6bf
5
5
  SHA512:
6
- metadata.gz: 88a9a689d6b2067d1b420b2a55bc98c8ddb4f55562b83c812ac9d8b5f4dccd94dd4263221469e371b9455fe3370e68e7e15a0af03b510cd92d1d874c54e1667e
7
- data.tar.gz: b914bf469984ab9677ae05d521ff25c58095894f2883b27e77ca796efe0e5f5781894a462dafaa9d932ed2e1a7beb0d7927504a839d3392bdd8fdf702077ddb8
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', '//assets.caboosecms.com/assets/caboose/file_types/' + ext[0].replace(".","").toLowerCase() + '.png').addClass('file-icon').attr("width","80").attr("height","80"));
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', '//assets.caboosecms.com/assets/caboose/file_types/' + ext[0].replace(".","").toLowerCase() + '.png').addClass('file-icon').attr("width","80").attr("height","80"));
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
 
@@ -1,3 +1,3 @@
1
1
  module Caboose
2
- VERSION = '0.9.153'
2
+ VERSION = '0.9.154'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: caboose-cms
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.153
4
+ version: 0.9.154
5
5
  platform: ruby
6
6
  authors:
7
7
  - William Barry