jqr-helpers 1.0.39 → 1.0.40

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
- Yjk1YjQ3ODIzNDJhZjJmYThjOTgwNzdkYjdlMTNkNmRhMzJlN2JhOQ==
4
+ MzA1ZGQxZTIzZjdlMzVmYTg4ZDc5ZDc0MmZkMzBlMDdiNTExZDA1Zg==
5
5
  data.tar.gz: !binary |-
6
- MjYxZGVmOTNjNmU0NWU1MTdjMjMzMmM0YzNkM2Y0NDkwMDU4Mzg5ZA==
6
+ MjAyZDQ0ZjgxNzcxODFlNDkxMGMzMjg5NWM2MjlmNzI3MDM4MTk1ZA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MTI5YjY4NGFhMWEzMjczODBlZWU1YTdmNjFiZjhiMjU1Yjg5NjgwZGZiZDQ5
10
- ZjVlNWI2MjljODczZjVkOTcyMDEwYWQyN2Y5OWU1YmIzYWE0MGRhMzZhNzk1
11
- ZjZmOGMzNTUwNmJmZTFiZjAxYjA2MGU1MTAyMzcyMDhjZDdlZmU=
9
+ MjhjNzFjYmE1OTBhZTAxOWFhN2FjNjExMTQ0NWRlZTViM2FmMjgwOTA1NzQz
10
+ ZjdmZTZiMzBmYzJlYjVkNjhjNDE0NTE0ZTdjN2UzYjI5YWYyZWI2ZDg1OGM0
11
+ ZWIzM2Q2ZTRkZGQ3MmJkMGIzNjk2NjJlODFjYzU0Y2M1OTc2MzY=
12
12
  data.tar.gz: !binary |-
13
- NTVmNDE0ZjRiODMwNmY1M2Y3ZjY4ZjI2ZTI4YTcwNWM1Mjc0ZGE5YTI3Y2U3
14
- N2Q2ZTkzMzllZmJlMGYzZTk5ZjMyOTQyZTI5ZTU2MDkzMGMxYTIwMzE3MDlm
15
- MTQ2NWRkMDkyMzdjN2VmZDlmNjdkNWU5YTkwODZhMWZkOWUyNTI=
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.39'
5
- s.date = '2014-04-08'
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
@@ -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
- html_options.merge(:tag_name => 'button'))
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
- html_options.merge(:tag_name => 'button'))
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[:'class'] ||= ''
200
- options[:'class'] << ' ujs-ajax-button'
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
@@ -1,6 +1,6 @@
1
1
  module JqrHelpers
2
2
  # @private
3
3
  module Rails
4
- VERSION = '1.0.39'
4
+ VERSION = '1.0.40'
5
5
  end
6
6
  end
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.39
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-08 00:00:00.000000000 Z
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