caboose-cms 0.9.35 → 0.9.37

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: 586770e73073bd4af63498eb268323ad299b2c52
4
- data.tar.gz: 8b937ba9c1e5e478353d77a9ada8fc1da27990cf
3
+ metadata.gz: 20f9778a027061df45b57025ad93313704933251
4
+ data.tar.gz: dbe35c9330f94b6d5373d0d72384c2885cdb5869
5
5
  SHA512:
6
- metadata.gz: deec6c98840a36fe8337e57aaf11d8ff98acfaea9b47de3d9cb425518ac85364792866f40388b0a64ef3d168d4717eab365cf2bfb32999e9540b7f42cde5cecd
7
- data.tar.gz: 5f64e39453aa297259bf6d777a7b67ee265d612d21d497c308b3d949b21333e5d6678849d8dd99999befbc8533954c2598a00ea1b3b27442f95a09b9523b53f4
6
+ metadata.gz: 19e78583d800e03e571dcfe3559c3e904a44237f1e7b0f4594bfacc132a336f6eeb04a753f5b7612d84ae7edb881cb24aab47183cc9b737fd3d11c4ba6fe7c59
7
+ data.tar.gz: 284f7022fdb576334781506ee958b912854ae48dc44d4957fca01e3c0dac90a10fb5623d529aca7c7707d3f250b857c507456f9f296c384f67d55022421128e3
@@ -10,6 +10,7 @@ var BlockModalController = ModalController.extend({
10
10
  new_block_on_init: false,
11
11
  assets_path: false,
12
12
  block_types: false,
13
+ trapFocus: false,
13
14
  before_id: false,
14
15
  after_id: false,
15
16
  complex_field_types: ['block', 'richtext', 'image', 'file'],
@@ -8,6 +8,7 @@ MediaBrowser.prototype = {
8
8
  cat: false,
9
9
  cat_id: false,
10
10
  categories: false,
11
+ media: false,
11
12
  s3_upload_url: false,
12
13
  aws_access_key_id: false,
13
14
  policy: false,
@@ -131,7 +132,7 @@ MediaBrowser.prototype = {
131
132
  async: false,
132
133
  data: { media_category_id: that.cat_id },
133
134
  success: function(resp) {
134
- that.cat = resp;
135
+ that.media = resp;
135
136
  that.cat_id = that.cat.id;
136
137
  that.selected_media = [];
137
138
  that.print_media();
@@ -184,10 +185,10 @@ MediaBrowser.prototype = {
184
185
  var processing = false;
185
186
  var d = new Date();
186
187
  d = d.getTime();
187
-
188
- if (that.cat.media.length > 0)
188
+
189
+ if (that.media.length > 0)
189
190
  {
190
- $.each(that.cat.media, function(i, m) {
191
+ $.each(that.media, function(i, m) {
191
192
  if (m.media_type == 'image' && m.processed == false)
192
193
  processing = true
193
194
  var li = $('<li/>')
@@ -213,7 +214,7 @@ MediaBrowser.prototype = {
213
214
  if (modal)
214
215
  modal.autosize();
215
216
 
216
- $.each(that.cat.media, function(i, m) {
217
+ $.each(that.media, function(i, m) {
217
218
  $('li.media').draggable({
218
219
  multiple: true,
219
220
  revert: 'invalid',
@@ -1,3 +1,3 @@
1
1
  module Caboose
2
- VERSION = '0.9.35'
2
+ VERSION = '0.9.37'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: caboose-cms
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.35
4
+ version: 0.9.37
5
5
  platform: ruby
6
6
  authors:
7
7
  - William Barry
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-12-08 00:00:00.000000000 Z
11
+ date: 2017-01-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pg