caboose-cms 0.5.34 → 0.5.35

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YTUyNTVlMGUwODZmNWZhZWI3MzY4NDFkMGU2Y2QzOTQ3OGNkZWJiYw==
4
+ YThkN2U0ZjAxNTAzNzQxNjliZmYzNTc1OTEyZTdhNDE4ZTg1M2EzNA==
5
5
  data.tar.gz: !binary |-
6
- YjNiNjhiMzgxYmQyMGY1MTU1ZTM4MmNhZWExMDA2NjUxOWFlZWNhMw==
6
+ NmZiNDU3NTNhYjk0MGFjOTUwZjJkZjQyMGY2OTdkZDRlOGM3NTU0OQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MjJlMjcwNjZiY2QxMjYyYjgxZTNjODBiNjJmNWZkZmI5ODE4Nzc3NWZlMWQ3
10
- ZTM2ZDI1YWIwNDE4ZDhjYjI4N2U5ZmU3ZWM1MzVmZjZmZTA4NzIxN2M3YTgx
11
- YWJlOTc0MWRiMWFhNTg0YjU3MTczYTlmMmJjYmY2MGI2ODcxYjg=
9
+ MzcxZTVlMWNkZjNkYjUxODU0MTExZmY2NzVmYTJlZmNlNzVhMThhZjdlNmM5
10
+ MDFkMzE2YzhiMjI3YTAyNjA2YzhkMWIxMjk5MTM5ZTZkYzc2Y2Q3Yjk3MTMy
11
+ YzNmNmJiNzI0NGYwNmVmYzc0YTI5MmU4ZThkNzdhMjJmOWNlNjQ=
12
12
  data.tar.gz: !binary |-
13
- ZmFiNDhiYzAxYmUwOTMzODFhNGMxYWVhMzFkNDZmNTE0MDllMmFmZDcxNWE2
14
- YWY4Mjc1MDY5OGEwNzhlNzllY2IwNjZiZjYwZDFlNjExYWMzNmI3OTA1YjJi
15
- M2FhNTMzOTM1OGYzMjE1OTYyOGFhN2UxOTUyMWMwMjg3ZDZlMWM=
13
+ ODlhY2U4Yjc4Y2JkN2YyYWQ4OGJlYTg4ODc1NWNhNjc1NGQ0YzBjOWMyYWFj
14
+ OTBjNzQxOWE1YjBjNzEyNjUzZmEwNzRiN2EzYzk0NmU5OTQ1MmM2ODYyMGE3
15
+ NzBkNTFhNTA0MTg3YWQxYjNjMTRmZjQyM2I5YzY1NGE4NThlN2E=
@@ -137,9 +137,8 @@ PageContentController.prototype = {
137
137
  $.ajax({
138
138
  url: '/admin/pages/' + this.page_id + '/blocks/' + block_id + '/move-up',
139
139
  type: 'put',
140
- success: function(resp) {
141
- that.stop_loadify();
142
- if (resp.success) that.render_blocks();
140
+ success: function(resp) {
141
+ if (resp.success) that.render_blocks(function() { that.stop_loadify(); });
143
142
  }
144
143
  });
145
144
  },
@@ -151,9 +150,8 @@ PageContentController.prototype = {
151
150
  $.ajax({
152
151
  url: '/admin/pages/' + this.page_id + '/blocks/' + block_id + '/move-down',
153
152
  type: 'put',
154
- success: function(resp) {
155
- that.stop_loadify();
156
- if (resp.success) that.render_blocks();
153
+ success: function(resp) {
154
+ if (resp.success) that.render_blocks(function() { that.stop_loadify(); });
157
155
  }
158
156
  });
159
157
  },
@@ -187,12 +185,13 @@ PageContentController.prototype = {
187
185
  Block Rendering
188
186
  *****************************************************************************/
189
187
 
190
- render_blocks: function() {
188
+ render_blocks: function(before_render) {
191
189
  $('.sortable').sortable('destroy');
192
190
  var that = this;
193
191
  $.ajax({
194
192
  url: '/admin/pages/' + this.page_id + '/blocks/render-second-level',
195
193
  success: function(blocks) {
194
+ if (before_render) before_render();
196
195
  $(blocks).each(function(i, b) {
197
196
  $('#block_' + b.id).replaceWith(b.html);
198
197
  });
@@ -1,3 +1,3 @@
1
1
  module Caboose
2
- VERSION = '0.5.34'
2
+ VERSION = '0.5.35'
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.5.34
4
+ version: 0.5.35
5
5
  platform: ruby
6
6
  authors:
7
7
  - William Barry
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-13 00:00:00.000000000 Z
11
+ date: 2014-11-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pg