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
|
-
|
4
|
+
ZGJkOGI1ZWZmNTAwN2YzZmFiYjI4YWZkM2QxMzgxNjBlN2FiNGQwZQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MTJlYWJmODcyM2VhZTNmMzAxNzRmOTJkNGEyYzI5ZjZmMTY3OGYzOQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
OTVlMjlhZWNjYjc2MGQyZmUxNmIyZTU2OTI0ZmZlODgxMjQ5OTMxOTBjM2Q5
|
10
|
+
NGM1ZmRkMTNkZGJjNDIxZjE2YmU0OTNmMzA2MDUwNTZjNTA2NzZiNDZlMTc2
|
11
|
+
MjNhOWNkY2M5NjNmMTA4MGMwMjgwM2U4M2VhNWE1MTRkZTZhZWI=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
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']
|
121
|
+
if options['ajax']
|
120
122
|
options['onclick'] = '' if !options.has_key?('onclick')
|
121
|
-
options['onclick'] += "PrimeFaces.ab({source: '
|
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
|
data/lib/prime/rails/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2013-09-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jquery-rails
|