jqr-helpers 1.0.39 → 1.0.40
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 +8 -8
- data/jqr-helpers.gemspec +2 -2
- data/lib/jqr-helpers/helpers.rb +6 -4
- data/lib/jqr-helpers/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
|
+
MzA1ZGQxZTIzZjdlMzVmYTg4ZDc5ZDc0MmZkMzBlMDdiNTExZDA1Zg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MjAyZDQ0ZjgxNzcxODFlNDkxMGMzMjg5NWM2MjlmNzI3MDM4MTk1ZA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MjhjNzFjYmE1OTBhZTAxOWFhN2FjNjExMTQ0NWRlZTViM2FmMjgwOTA1NzQz
|
10
|
+
ZjdmZTZiMzBmYzJlYjVkNjhjNDE0NTE0ZTdjN2UzYjI5YWYyZWI2ZDg1OGM0
|
11
|
+
ZWIzM2Q2ZTRkZGQ3MmJkMGIzNjk2NjJlODFjYzU0Y2M1OTc2MzY=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MzQ3ZTlhNjQxOWY2YmEzODM4ZjkyMTlhYjY5MmI3OGU3Nzg4MThhNjJjNGMw
|
14
|
+
ZTVhNzNlYzkzY2ZjMTllMjFlMmYxZmJhOThjNTBhMzI4MWY5NmUwNDQ2YzNk
|
15
|
+
NDFhYjViNzQyYTRjOGIyOWE1MjY5NWQ1NDNiZjgzYjVmOTI1NjA=
|
data/jqr-helpers.gemspec
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'jqr-helpers'
|
3
3
|
s.require_paths = %w(. lib lib/jqr-helpers)
|
4
|
-
s.version = '1.0.
|
5
|
-
s.date = '2014-04-
|
4
|
+
s.version = '1.0.40'
|
5
|
+
s.date = '2014-04-09'
|
6
6
|
s.summary = 'Helpers to print unobtrusive jQuery-UI tags.'
|
7
7
|
s.description = <<-EOF
|
8
8
|
This gem adds helper methods to create unobtrusive jQuery code. It outputs
|
data/lib/jqr-helpers/helpers.rb
CHANGED
@@ -102,7 +102,7 @@ module JqrHelpers
|
|
102
102
|
def button_to_dialog(dialog_id, html_content, dialog_options={},
|
103
103
|
html_options={})
|
104
104
|
link_to_dialog(dialog_id, html_content, dialog_options,
|
105
|
-
|
105
|
+
html_options.merge(:tag_name => 'button', :type => 'button'))
|
106
106
|
end
|
107
107
|
|
108
108
|
# Create a button that prompts a jQuery confirm dialog, which is nicer-looking
|
@@ -156,7 +156,7 @@ module JqrHelpers
|
|
156
156
|
def button_to_remote_dialog(url, html_content, dialog_options={},
|
157
157
|
html_options={})
|
158
158
|
link_to_remote_dialog(url, html_content, dialog_options,
|
159
|
-
|
159
|
+
html_options.merge(:tag_name => 'button', :type => 'button'))
|
160
160
|
end
|
161
161
|
|
162
162
|
# Set the dialog title from +inside+ the dialog itself. This prints a
|
@@ -196,8 +196,9 @@ module JqrHelpers
|
|
196
196
|
|
197
197
|
# Specifically do not add data-remote
|
198
198
|
options[:'data-method'] = options.delete(:method)
|
199
|
-
options[:
|
200
|
-
options[:
|
199
|
+
options[:class] ||= ''
|
200
|
+
options[:class] << ' ujs-ajax-button'
|
201
|
+
options[:type] = 'button'
|
201
202
|
options[:'data-url'] = url
|
202
203
|
if options.key?(:confirm)
|
203
204
|
options[:'data-confirm'] = options.delete(:confirm)
|
@@ -368,6 +369,7 @@ module JqrHelpers
|
|
368
369
|
end
|
369
370
|
url = url_for(url) if url.is_a?(Hash)
|
370
371
|
|
372
|
+
options[:type] = 'button'
|
371
373
|
options['data-confirm'] = confirm if confirm
|
372
374
|
options['data-disable-with'] = disable_with if disable_with
|
373
375
|
options['data-method'] = method if method
|
data/lib/jqr-helpers/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jqr-helpers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.40
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Orner
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-04-
|
11
|
+
date: 2014-04-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|