caboose-cms 0.2.32 → 0.2.33
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/app/assets/javascripts/caboose/model/bound_select.js +17 -11
- data/lib/caboose/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YmI1MjYzMjNkNjJkZWQyNzkyOGY5OTc3ZTYzODZhZjZjMDk1NDlmZg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
OGU5MDg1Y2Q0YzhhODkzNTNiNWNhMGE3YmVhMzEwNTg5YjZmNTUxZQ==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MWRkMWM4OTUyZmI4ZWQ2MzVlMjA3ZDFjZDUwNDA4ZTU0ZjVmNzQ0OWRlNjA1
|
10
|
+
ZTMzNGQwYTljYmVmN2JmNTdhY2ZlM2FhMTkxM2RiMWVjYzZiMmRmZWE5NTli
|
11
|
+
Y2UzMzdhNjE0MDEwYTA0YmRhNmY4YzM1ZTI5YmJlNzlkNzI1NDA=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NGVlM2U2N2E5ZmUzZDRlNjA0NmEyNGU3ZDY0Y2UxNzUyNDZhZTViZWY3MTdk
|
14
|
+
YWU4NWU0YWU3YjQxOTc1YThmZDM2ZmNiNWYyOWNiMjY5NzFmMmFjMTE0ZDg4
|
15
|
+
YmU2ZmU0YmY5ZjQwZDcyZTY1Y2I5N2IyOGEzNDM1YWQ2MzdiOGM=
|
@@ -22,13 +22,16 @@ BoundSelect = BoundControl.extend({
|
|
22
22
|
.css('position', 'relative')
|
23
23
|
);
|
24
24
|
$('#'+this.el+'_container').empty();
|
25
|
-
|
26
|
-
|
27
|
-
.
|
28
|
-
|
29
|
-
.
|
30
|
-
|
31
|
-
|
25
|
+
if (this.attribute.fixe_placeholder)
|
26
|
+
{
|
27
|
+
$('#'+this.el+'_container').append($('<div/>')
|
28
|
+
.attr('id', this.placeholder)
|
29
|
+
.addClass('placeholder')
|
30
|
+
.append($('<span/>')
|
31
|
+
.html(this.attribute.nice_name + ': ')
|
32
|
+
)
|
33
|
+
);
|
34
|
+
}
|
32
35
|
$('#'+this.el+'_container').append($('<input/>')
|
33
36
|
.attr('id', this.el)
|
34
37
|
.attr('placeholder', this.attribute.empty_text)
|
@@ -38,10 +41,13 @@ BoundSelect = BoundControl.extend({
|
|
38
41
|
if (this.attribute.width)
|
39
42
|
$('#'+this.el).css('width', this.attribute.width);
|
40
43
|
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
44
|
+
if (this.attribute.fixed_placeholder)
|
45
|
+
{
|
46
|
+
var w = $('#'+this.placeholder).outerWidth();
|
47
|
+
$('#'+this.el)
|
48
|
+
.css('padding-left', '+=' + w)
|
49
|
+
.css('width', '-=' + w);
|
50
|
+
}
|
45
51
|
|
46
52
|
var this2 = this;
|
47
53
|
this.attribute.populate_options(function() {
|
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.2.
|
4
|
+
version: 0.2.33
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- William Barry
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-08-
|
11
|
+
date: 2013-08-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|