caboose-cms 0.2.48 → 0.2.49
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
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
!binary "U0hBMQ==":
|
|
3
3
|
metadata.gz: !binary |-
|
|
4
|
-
|
|
4
|
+
YjM5MGEzZTBkZmZjMTlhMzE0YTI0NDk5NGViMzcxMzc1NGEwMWUwZQ==
|
|
5
5
|
data.tar.gz: !binary |-
|
|
6
|
-
|
|
6
|
+
MjFmYTZiNTBlOTViNmUzNDIyMGNiOWNiNTY4M2I3MmI0YjY1NDA2OA==
|
|
7
7
|
!binary "U0hBNTEy":
|
|
8
8
|
metadata.gz: !binary |-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
MzAzMTZkMTQzMjJmMDExOWYyMjQzNTg4NjkxNmVkOTdhMWYwM2FmZTZkOWVh
|
|
10
|
+
N2Q3ZjgyNTgxZTQzNzc2MjU0N2I0NmZmMjYyYTJmYmM4YWIyZDhlYTVmMzk1
|
|
11
|
+
ODcwZTM0NThkOTMxMjNkMjc3Nzc0Njg3NzEyNDdjOGZkNDg2NTM=
|
|
12
12
|
data.tar.gz: !binary |-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
MTA3ODJlNmY4YmJhMDEwNDQ5Y2Y2MjA2ZWFhNjRhNjdiZGI1YjYwN2MzZmU1
|
|
14
|
+
NWNlOGY5YmVkZmE3OGNmZjIzMTViOTIxM2FiZWJmNmQ4YmQ2ZWRlZDU1ZGZk
|
|
15
|
+
ZjNhM2FkMTAwMDIyYjMwM2NjZGEyMTA4ZTNiNjVlNGJlYzc1YWY=
|
|
@@ -35,8 +35,12 @@ BoundRichText = BoundControl.extend({
|
|
|
35
35
|
}
|
|
36
36
|
else
|
|
37
37
|
$('#'+this2.el).removeClass('dirty');
|
|
38
|
-
});
|
|
39
|
-
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
setTimeout(function() {
|
|
41
|
+
var ed = tinymce.EditorManager.get(this2.el);
|
|
42
|
+
ed.on('blur', function(e) { this2.save(); });
|
|
43
|
+
}, 1500);
|
|
40
44
|
},
|
|
41
45
|
|
|
42
46
|
show_controls: function() {
|
|
@@ -135,3 +139,7 @@ BoundRichText = BoundControl.extend({
|
|
|
135
139
|
}
|
|
136
140
|
|
|
137
141
|
});
|
|
142
|
+
|
|
143
|
+
BoundRichText.test1 = function() {
|
|
144
|
+
alert('Testing');
|
|
145
|
+
};
|
|
@@ -39,16 +39,11 @@ module Caboose
|
|
|
39
39
|
end
|
|
40
40
|
|
|
41
41
|
def fix_desc
|
|
42
|
+
@options['desc'] = 0 and return if @options['desc'].nil?
|
|
42
43
|
return if @options['desc'] == 1
|
|
43
44
|
return if @options['desc'] == 0
|
|
44
|
-
if @options['desc'] == 'true'
|
|
45
|
-
|
|
46
|
-
return
|
|
47
|
-
end
|
|
48
|
-
if @options['desc'] == 'false'
|
|
49
|
-
@options['desc'] = 1
|
|
50
|
-
return
|
|
51
|
-
end
|
|
45
|
+
@options['desc'] = 1 and return if @options['desc'] == 'true' || @options['desc'].is_a?(TrueClass)
|
|
46
|
+
@options['desc'] = 0 and return if @options['desc'] == 'false' || @options['desc'].is_a?(FalseClass)
|
|
52
47
|
@options['desc'] = @options['desc'].to_i
|
|
53
48
|
end
|
|
54
49
|
|
|
@@ -67,6 +62,7 @@ module Caboose
|
|
|
67
62
|
end
|
|
68
63
|
|
|
69
64
|
def items
|
|
65
|
+
#return @options['model'].constantize.where(where).limit(limit).offset(offset).reorder(reorder).all
|
|
70
66
|
return @options['model'].constantize.where(where).limit(limit).offset(offset).reorder(reorder).all
|
|
71
67
|
end
|
|
72
68
|
|
|
@@ -193,7 +189,7 @@ module Caboose
|
|
|
193
189
|
end
|
|
194
190
|
|
|
195
191
|
def reorder
|
|
196
|
-
str = "id"
|
|
192
|
+
str = "id"
|
|
197
193
|
if (!@options['sort'].nil? && @options['sort'].length > 0)
|
|
198
194
|
str = "#{@options['sort']}"
|
|
199
195
|
end
|
data/lib/caboose/version.rb
CHANGED