caboose-cms 0.3.23 → 0.3.24

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
- YjRhNDNkZjU2Mjg1Yjc5ODg2ZGJjYjk5YzBjOTg2NWIwMDI2NWRjNg==
4
+ MTVlMDBhZjQ0MzU1OWEyMjUwNDcwZjNkMDE0MzJmMTU3NmQwYzcwZQ==
5
5
  data.tar.gz: !binary |-
6
- NDUzODg4YzcyZmRjMzdiMjE2N2U3NmM0MDRjYWIxZTUxNTdiZDI0Ng==
6
+ NTE0NTFlMTgxYjMwZDZhYjI5Yjk5ZTVhMzBiMmYwODcyOWQzYTZhMA==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- ODhkMTgwZjkyYmJkMThmNjI2NTNkZDJjNjBiODk0ZWQxZWE3OGFiODRiZDVk
10
- N2ZhNDBkMjM2MDRiOTQ4MjkxMGY0MDkxNDFkYTU0Y2U4ZjA1Y2M4MTgwMjhj
11
- MGI3ZWQ1MjU1YmNjNWFmYmNkZjVmNzkzNWQ0ZmEyYjBkZGNkMjU=
9
+ N2Q5ZTAxNzdkZDAwZDNhM2M4N2RkNGQxOWZlODlkZjIxM2VkZWM1YTE1YmI0
10
+ MTQ5MTVkOTZhYWE3NjFlZThhZTgxYjkyZWIwOGQ4MTNmOTQ2ZjBjYTFhZGRh
11
+ ZGFlNWM5ZTVlNWIyYjljYzA1OTcwYzMyM2I4NjRiYTdjMGIyNDQ=
12
12
  data.tar.gz: !binary |-
13
- MTk2MTc5MTQyZGU2NzdlYzc1OWRlOGFkZTRmNzNlZjA5YzM3YmFmM2M0MDRh
14
- Y2U0NmMyYzQzZjFhNWViMmJmMjY4NmIzZTQ2ZmI1N2I1MDJmYmQ3ODE3Njlm
15
- OWYwN2Y2MWU3ZTc3YWY2MTE4ZjFlMzEwYWQ5ODE1OGY2NmIxNmE=
13
+ NGZjYzdmZTliMTM4NDYwZDI3MTAyNTRjMzY3MWU5MTY4YTBhM2FmZjEzYTcw
14
+ YzcxZGZlNmUwODJlYTlkMWM5MDlhMjg5MDY1Njg2NTZiNTQzZDA3ODIxMWYy
15
+ ZTQ2MTI0ZDk4ODAyOGI0MWY5Mjg2MTU3ZjA2Y2JmNzk2YjQ0NTY=
@@ -23,7 +23,7 @@ Attribute.prototype = {
23
23
 
24
24
  update_url: false,
25
25
  options_url: false,
26
- options: false,
26
+ options: false,
27
27
 
28
28
  save: function(after) {
29
29
  if (this.before_update) this.before_update();
@@ -51,7 +51,7 @@ Attribute.prototype = {
51
51
 
52
52
  populate_options: function(after) {
53
53
  if (!this.options_url)
54
- return;
54
+ return;
55
55
  if (this.options)
56
56
  {
57
57
  if (after) after();
@@ -48,7 +48,14 @@ BoundSelect = BoundControl.extend({
48
48
  .css('padding-left', '+=' + w)
49
49
  .css('width', '-=' + w);
50
50
  }
51
+
52
+ //this.update_options();
51
53
 
54
+ //var this2 = this;
55
+ //this.attribute.populate_options(function() {
56
+ // this2.print_options(this2);
57
+ //});
58
+
52
59
  var this2 = this;
53
60
  this.attribute.populate_options(function() {
54
61
  var select = $('<select/>')
@@ -72,6 +79,35 @@ BoundSelect = BoundControl.extend({
72
79
  $('#'+this2.el+'_select').css('width', $('#'+this2.el).outerWidth());
73
80
  });
74
81
  },
82
+
83
+ //update_options: function() {
84
+ // var that = this;
85
+ // this.attribute.populate_options(function() {
86
+ // var select = $('<select/>')
87
+ // .attr('id', that.el + '_select')
88
+ // .addClass('fake')
89
+ // .css('width', $('#'+that.el).outerWidth())
90
+ // .on('change', function() {
91
+ // $('#'+that.el).val($('#'+that.el+'_select').val());
92
+ // that.save();
93
+ // });
94
+ //
95
+ // $.each(that.attribute.options, function(i, option) {
96
+ // var opt = $('<option/>')
97
+ // .val(option.value)
98
+ // .html(option.text);
99
+ // if (option.value == that.attribute.value)
100
+ // opt.attr('selected', 'true');
101
+ // select.append(opt);
102
+ // });
103
+ //
104
+ // if ($('#' + that.el + '_select').length)
105
+ // $('#' + that.el + '_select').remove();
106
+ //
107
+ // $('#'+that.el+'_container').append(select);
108
+ // $('#'+that.el+'_select').css('width', $('#'+that.el).outerWidth());
109
+ // });
110
+ //},
75
111
 
76
112
  view: function() {
77
113
 
@@ -45,6 +45,9 @@ $(document).ready(function() {
45
45
  </script>
46
46
  <% if use_tinymce %>
47
47
  <%= tinymce_assets %>
48
+ <script type='textjavascript'>
49
+ document.domain = "<%= Rails.application.config.action_controller.asset_host %>";
50
+ </script>
48
51
  <%= tinymce :caboose, width: '800px', height:'300px' %>
49
52
  <% end %>
50
53
  <% end %>
@@ -1,3 +1,3 @@
1
1
  module Caboose
2
- VERSION = '0.3.23'
2
+ VERSION = '0.3.24'
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.3.23
4
+ version: 0.3.24
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-01-22 00:00:00.000000000 Z
11
+ date: 2014-01-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails