caboose-cms 0.5.32 → 0.5.34
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 +8 -8
- data/app/assets/javascripts/caboose/admin_page_edit_content.js +32 -3
- data/lib/caboose/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YTUyNTVlMGUwODZmNWZhZWI3MzY4NDFkMGU2Y2QzOTQ3OGNkZWJiYw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YjNiNjhiMzgxYmQyMGY1MTU1ZTM4MmNhZWExMDA2NjUxOWFlZWNhMw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MjJlMjcwNjZiY2QxMjYyYjgxZTNjODBiNjJmNWZkZmI5ODE4Nzc3NWZlMWQ3
|
10
|
+
ZTM2ZDI1YWIwNDE4ZDhjYjI4N2U5ZmU3ZWM1MzVmZjZmZTA4NzIxN2M3YTgx
|
11
|
+
YWJlOTc0MWRiMWFhNTg0YjU3MTczYTlmMmJjYmY2MGI2ODcxYjg=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZmFiNDhiYzAxYmUwOTMzODFhNGMxYWVhMzFkNDZmNTE0MDllMmFmZDcxNWE2
|
14
|
+
YWY4Mjc1MDY5OGEwNzhlNzllY2IwNjZiZjYwZDFlNjExYWMzNmI3OTA1YjJi
|
15
|
+
M2FhNTMzOTM1OGYzMjE1OTYyOGFhN2UxOTUyMWMwMjg3ZDZlMWM=
|
@@ -132,27 +132,56 @@ PageContentController.prototype = {
|
|
132
132
|
|
133
133
|
move_block_up: function(block_id)
|
134
134
|
{
|
135
|
-
var that = this;
|
135
|
+
var that = this;
|
136
|
+
this.loadify($('#block_' + block_id + '_move_up_handle span'));
|
136
137
|
$.ajax({
|
137
138
|
url: '/admin/pages/' + this.page_id + '/blocks/' + block_id + '/move-up',
|
138
139
|
type: 'put',
|
139
140
|
success: function(resp) {
|
141
|
+
that.stop_loadify();
|
140
142
|
if (resp.success) that.render_blocks();
|
141
143
|
}
|
142
144
|
});
|
143
145
|
},
|
144
146
|
|
145
147
|
move_block_down: function(block_id)
|
146
|
-
{
|
147
|
-
var that = this;
|
148
|
+
{
|
149
|
+
var that = this;
|
150
|
+
this.loadify($('#block_' + block_id + '_move_down_handle span'));
|
148
151
|
$.ajax({
|
149
152
|
url: '/admin/pages/' + this.page_id + '/blocks/' + block_id + '/move-down',
|
150
153
|
type: 'put',
|
151
154
|
success: function(resp) {
|
155
|
+
that.stop_loadify();
|
152
156
|
if (resp.success) that.render_blocks();
|
153
157
|
}
|
154
158
|
});
|
155
159
|
},
|
160
|
+
|
161
|
+
loadify: function(el)
|
162
|
+
{
|
163
|
+
var that = this;
|
164
|
+
if (el.hasClass('ui-icon-arrowrefresh-1-e')) el.removeClass('ui-icon-arrowrefresh-1-e').addClass('ui-icon-arrowrefresh-1-s');
|
165
|
+
else if (el.hasClass('ui-icon-arrowrefresh-1-s')) el.removeClass('ui-icon-arrowrefresh-1-s').addClass('ui-icon-arrowrefresh-1-w');
|
166
|
+
else if (el.hasClass('ui-icon-arrowrefresh-1-w')) el.removeClass('ui-icon-arrowrefresh-1-w').addClass('ui-icon-arrowrefresh-1-n');
|
167
|
+
else if (el.hasClass('ui-icon-arrowrefresh-1-n')) el.removeClass('ui-icon-arrowrefresh-1-n').addClass('ui-icon-arrowrefresh-1-e');
|
168
|
+
else el.addClass('ui-icon-arrowrefresh-1-e');
|
169
|
+
this.loadify_el = el;
|
170
|
+
this.loadify_timer = setTimeout(function() { that.loadify(el); }, 200);
|
171
|
+
},
|
172
|
+
|
173
|
+
stop_loadify: function()
|
174
|
+
{
|
175
|
+
if (this.loadify_el)
|
176
|
+
{
|
177
|
+
this.loadify_el.removeClass('ui-icon-arrowrefresh-1-e')
|
178
|
+
.removeClass('ui-icon-arrowrefresh-1-s')
|
179
|
+
.removeClass('ui-icon-arrowrefresh-1-w')
|
180
|
+
.removeClass('ui-icon-arrowrefresh-1-n');
|
181
|
+
}
|
182
|
+
if (this.loadify_timer)
|
183
|
+
clearTimeout(this.loadify_timer);
|
184
|
+
},
|
156
185
|
|
157
186
|
/*****************************************************************************
|
158
187
|
Block Rendering
|
data/lib/caboose/version.rb
CHANGED