caboose-cms 0.3.29 → 0.3.30
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
|
+
OGVhNGIyYmU4ZmE5M2VjMTYyMjdiMDViMjEyNmI0ZmE0MDVlYmVmOA==
|
|
5
5
|
data.tar.gz: !binary |-
|
|
6
|
-
|
|
6
|
+
ZGJhZjBhYjhlMzEwYWYyYzgwMTVkYTNjOTJjMzVjYTBjOWJkOGQwZA==
|
|
7
7
|
!binary "U0hBNTEy":
|
|
8
8
|
metadata.gz: !binary |-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
ZTc1MWExZTIzZWNkNTJkYmZiODQ1MTE4Y2UxYzk2MDdlNzdkNzg1YTE0ZWI0
|
|
10
|
+
MDkzZTJhOWMwNjM3NmYzZWE5Njg5NDkzODUyYWIwZjIwNDA4NTY0MjA3ZWQ1
|
|
11
|
+
OTBhOGMzNWE2NzQzMGQwZjRkNTc4ZDA2Y2Y2YzhhYjRmZWY3Y2Q=
|
|
12
12
|
data.tar.gz: !binary |-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
MTE3ZTU5N2U3OTQ3ZDY3MGQwZjUyY2I1NzU3MDRhOGMyOWI5MWNlNjdhNWVj
|
|
14
|
+
MWU3ZTdiNGNhMjE1ZjdiYmMxNjY5YTNiMGVkNzUxNmE3YzI3OWNmZjQ2NDI1
|
|
15
|
+
NTJjYTIzYzMzMWZmMjA1Yzg3Mzg5ZDYzMTI1ZjQxYTM5Zjc3OTQ=
|
|
@@ -66,7 +66,21 @@ BoundSelect = BoundControl.extend({
|
|
|
66
66
|
$('#'+this2.el).val($('#'+this2.el+'_select').val());
|
|
67
67
|
this2.save();
|
|
68
68
|
});
|
|
69
|
-
|
|
69
|
+
// Make sure the existing value is in the list of options
|
|
70
|
+
var exists = false;
|
|
71
|
+
$.each(this2.attribute.options, function(i, option) {
|
|
72
|
+
if (option.value == this2.attribute.value)
|
|
73
|
+
{
|
|
74
|
+
exists = true;
|
|
75
|
+
return false;
|
|
76
|
+
}
|
|
77
|
+
});
|
|
78
|
+
if (!exists)
|
|
79
|
+
this2.attribute.options.unshift({
|
|
80
|
+
value: this2.attribute.value,
|
|
81
|
+
text: this2.attribute.text
|
|
82
|
+
});
|
|
83
|
+
|
|
70
84
|
$.each(this2.attribute.options, function(i, option) {
|
|
71
85
|
var opt = $('<option/>')
|
|
72
86
|
.val(option.value)
|
|
@@ -74,9 +88,9 @@ BoundSelect = BoundControl.extend({
|
|
|
74
88
|
if (option.value == this2.attribute.value)
|
|
75
89
|
opt.attr('selected', 'true');
|
|
76
90
|
select.append(opt);
|
|
77
|
-
});
|
|
91
|
+
});
|
|
78
92
|
$('#'+this2.el+'_container').append(select);
|
|
79
|
-
$('#'+this2.el+'_select').css('width', $('#'+this2.el).outerWidth());
|
|
93
|
+
$('#'+this2.el+'_select').css('width', $('#'+this2.el).outerWidth());
|
|
80
94
|
});
|
|
81
95
|
},
|
|
82
96
|
|
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.30
|
|
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-
|
|
11
|
+
date: 2014-02-07 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|