prime-rails 0.0.11 → 0.0.12

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
- OTg4MTc0ZDIzOGMxZjdkOTRhNjU5NWQwOWZlNjc2NjFkMzhjMmJkYg==
4
+ ZGJkOGI1ZWZmNTAwN2YzZmFiYjI4YWZkM2QxMzgxNjBlN2FiNGQwZQ==
5
5
  data.tar.gz: !binary |-
6
- ODRkN2JmMGU2ZDBmMzdiMGI4NjQ5OTI2ZTgxOGJhNWJiYWYzNmQxMg==
6
+ MTJlYWJmODcyM2VhZTNmMzAxNzRmOTJkNGEyYzI5ZjZmMTY3OGYzOQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NWViMThhYzcwYzViNzRlYzNmOTI1OWIzMmIwMDcyM2U2MjU4ZWVkMTRmMTRk
10
- YmM2ODAxM2JkY2RjMGU3YTY2NzU0MGMxNTVjOTRjNDY1NjQ0MmJiYWU0NzJj
11
- N2Q0YzM3ODkyYzg3NDZkNmQzOThmYWI4YjgzNDlkMDU2YTIwOWI=
9
+ OTVlMjlhZWNjYjc2MGQyZmUxNmIyZTU2OTI0ZmZlODgxMjQ5OTMxOTBjM2Q5
10
+ NGM1ZmRkMTNkZGJjNDIxZjE2YmU0OTNmMzA2MDUwNTZjNTA2NzZiNDZlMTc2
11
+ MjNhOWNkY2M5NjNmMTA4MGMwMjgwM2U4M2VhNWE1MTRkZTZhZWI=
12
12
  data.tar.gz: !binary |-
13
- MDkzMWRlZjU2MTM4NzQxZmY3ZmRjMjQ1YWE0NTBiODIxN2NkZjdlMjE2ZDk2
14
- YjY0NmI1NzNiYzY5MDkzODFiMzc0YTNkYWYxNGQwOWUxOTJmMDQ5NzljYjNl
15
- MjhhNjk4ZTNmMDhiZWNlNTkxMjZhZTc4Y2VlOGMzMTE2ZDA4OGE=
13
+ YmEwOGYxZWU3NmNlNGMyY2JkZjI0MmRkMWI2N2Y1M2NlMjViMmQxOTg5ZTlj
14
+ ZGMzZGU0ZTdkY2RkMTc5MjU3MmQyN2JhYjBhZjYzMzkwMDM3YWNkOGRkOWU5
15
+ ZGIwNGMyOTA1MjZiNjUzOGViOTY5ZmMxNjc4NWU1NzEzNzRiMmU=
@@ -157,12 +157,16 @@ PrimeFaces.widget.Dropdown = PrimeFaces.widget.BaseWidget.extend({
157
157
  if (cfg.change) {
158
158
  contentChange = cfg.change;
159
159
  cfg.change = function(e) { eval(contentChange); };
160
- }
161
-
160
+ }
161
+
162
162
  if (cfg.listbox) {
163
- this.jq.puilistbox(cfg);
163
+ this.jq.puilistbox(cfg);
164
164
  } else {
165
165
  this.jq.puidropdown(cfg);
166
+
167
+ if (cfg.selectValue) {
168
+ this.jq.puidropdown('selectValue', cfg.selectValue)
169
+ }
166
170
  }
167
171
  }
168
172
  });
@@ -115,15 +115,16 @@ module ActionView::Helpers::FormTagHelper
115
115
  end
116
116
 
117
117
  options.reverse_merge! 'name' => 'button', 'type' => 'submit'
118
+
119
+ clientid = sanitize_to_id(options["id"])
118
120
 
119
- if options['ajax'] == 'true'
121
+ if options['ajax']
120
122
  options['onclick'] = '' if !options.has_key?('onclick')
121
- options['onclick'] += "PrimeFaces.ab({source: 'this'});return false;"
123
+ options['onclick'] += "PrimeFaces.ab({source: '#{clientid}'});return false;"
122
124
  end
123
125
 
124
126
  output = content_tag :button, content_or_options || 'Button', options, &block
125
-
126
- clientid = sanitize_to_id(options["id"])
127
+
127
128
  widgetvar = options.has_key?("widgetVar") ? options["widgetVar"] : "widget_"+clientid
128
129
 
129
130
  options_ui = options
@@ -1,5 +1,5 @@
1
1
  module Prime
2
2
  module Rails
3
- VERSION = "0.0.11"
3
+ VERSION = "0.0.12"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: prime-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.11
4
+ version: 0.0.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lazaro Nixon
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-09-19 00:00:00.000000000 Z
11
+ date: 2013-09-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jquery-rails