caboose-cms 0.3.23 → 0.3.24
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
|
-
|
4
|
+
MTVlMDBhZjQ0MzU1OWEyMjUwNDcwZjNkMDE0MzJmMTU3NmQwYzcwZQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NTE0NTFlMTgxYjMwZDZhYjI5Yjk5ZTVhMzBiMmYwODcyOWQzYTZhMA==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
N2Q5ZTAxNzdkZDAwZDNhM2M4N2RkNGQxOWZlODlkZjIxM2VkZWM1YTE1YmI0
|
10
|
+
MTQ5MTVkOTZhYWE3NjFlZThhZTgxYjkyZWIwOGQ4MTNmOTQ2ZjBjYTFhZGRh
|
11
|
+
ZGFlNWM5ZTVlNWIyYjljYzA1OTcwYzMyM2I4NjRiYTdjMGIyNDQ=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
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 %>
|
data/lib/caboose/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2014-01-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|