caboose-cms 0.2.32 → 0.2.33

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
- MWE5MzA0NDI3YzU4NTk3ZjIyMGFmYWU1MzNjMDBhMGFkNzhiMmE3NA==
4
+ YmI1MjYzMjNkNjJkZWQyNzkyOGY5OTc3ZTYzODZhZjZjMDk1NDlmZg==
5
5
  data.tar.gz: !binary |-
6
- OWU5YWUyN2YyZjE1ZWU1MzUyOWFmZGRkMGYxZWZlZGE5ZDAwOWJhZA==
6
+ OGU5MDg1Y2Q0YzhhODkzNTNiNWNhMGE3YmVhMzEwNTg5YjZmNTUxZQ==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- ZjcxOGJkOWI1ZDY3YjQ5MWQ2YTE3YTNmOGMzYTJjNmViMzQ3MzcwYjQwNjBi
10
- ZDQ3OWVjNTliZGNlM2IxOWZkYzU3MTg2ZTAwMDIyNDRkOTk2YjExOGE2ZTBi
11
- OWZlY2Q3NDA3MTUwNjY0YjFmOGIxOTk1YjliODBmYTQ4ZTEzMmY=
9
+ MWRkMWM4OTUyZmI4ZWQ2MzVlMjA3ZDFjZDUwNDA4ZTU0ZjVmNzQ0OWRlNjA1
10
+ ZTMzNGQwYTljYmVmN2JmNTdhY2ZlM2FhMTkxM2RiMWVjYzZiMmRmZWE5NTli
11
+ Y2UzMzdhNjE0MDEwYTA0YmRhNmY4YzM1ZTI5YmJlNzlkNzI1NDA=
12
12
  data.tar.gz: !binary |-
13
- MWRiMzQxYjE5OTIzYzg4ZjZjZTQ3ODE1OGEzNTJjYzUyZmJmZDdjMGJmZTlm
14
- MGEyNjJiOGRiNWZiZDBhMDBjMzJmYWQ1YzZjMzI3YzVlMTIzNzFlODliZGMx
15
- YmM0NGM5Njc3Mzg4YTU3N2MyYWU0NzdmOWFiYTU3NDliYTk1NGY=
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
- $('#'+this.el+'_container').append($('<div/>')
26
- .attr('id', this.placeholder)
27
- .addClass('placeholder')
28
- .append($('<span/>')
29
- .html(this.attribute.nice_name + ': ')
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
- var w = $('#'+this.placeholder).outerWidth();
42
- $('#'+this.el)
43
- .css('padding-left', '+=' + w)
44
- .css('width', '-=' + w);
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() {
@@ -1,3 +1,3 @@
1
1
  module Caboose
2
- VERSION = '0.2.32'
2
+ VERSION = '0.2.33'
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.2.32
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-21 00:00:00.000000000 Z
11
+ date: 2013-08-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails