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
- NDUzMTk2MWQ2ZmU5YmFjYzUwODdhMGI3ZjgyNzFmYzhkMDc3ZmUzYg==
4
+ YjM5MGEzZTBkZmZjMTlhMzE0YTI0NDk5NGViMzcxMzc1NGEwMWUwZQ==
5
5
  data.tar.gz: !binary |-
6
- MmVkODUwZjhmYmEwYmJiMzkwMTNkZGNmYmQ5NGIxMjJiMmNlNmZhNA==
6
+ MjFmYTZiNTBlOTViNmUzNDIyMGNiOWNiNTY4M2I3MmI0YjY1NDA2OA==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- ODlmY2VlZjczODY3YjUwMmZmY2Q0NTkwNjg1OWFmNjczMzY2NjkzN2Q5YjA5
10
- MGU5MGZiOTlkNWIxNGNlOTkxNjliY2I5YzA2YjEzNzRiZjUxMDY3ZmEyMzIz
11
- N2ExMDVlNzAyMGY1MWU0YTNjZTE1NjZlODg5NWMwNmVkMjZjYTQ=
9
+ MzAzMTZkMTQzMjJmMDExOWYyMjQzNTg4NjkxNmVkOTdhMWYwM2FmZTZkOWVh
10
+ N2Q3ZjgyNTgxZTQzNzc2MjU0N2I0NmZmMjYyYTJmYmM4YWIyZDhlYTVmMzk1
11
+ ODcwZTM0NThkOTMxMjNkMjc3Nzc0Njg3NzEyNDdjOGZkNDg2NTM=
12
12
  data.tar.gz: !binary |-
13
- YmI1M2FhOTc4NDRhYjkxZTNhZWUwYjBlNzU0NDM1ZjFkYTZjZGE1NGY3Zjk0
14
- OTYwNjEwMzQ2NGQ2M2ViZTg3ODg5N2FmNTY5ZDNiYjU2NjY1Y2YyN2VmZjAw
15
- MmVlZDYyOGRiNjNjYjcyMjEyZWYyNWRmMDhkYTMxYjIwNjdmOTk=
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
- $('#'+this.el).on('blur', function() { this2.save(); });
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
- @options['desc'] = 1
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
@@ -1,3 +1,3 @@
1
1
  module Caboose
2
- VERSION = '0.2.48'
2
+ VERSION = '0.2.49'
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.2.48
4
+ version: 0.2.49
5
5
  platform: ruby
6
6
  authors:
7
7
  - William Barry