jqr-helpers 1.0.29 → 1.0.30
Sign up to get free protection for your applications and to get access to all the features.
- data/app/assets/javascripts/jqr-helpers.js +1 -0
- data/jqr-helpers.gemspec +2 -2
- data/lib/jqr-helpers/helpers.rb +2 -0
- data/lib/jqr-helpers/version.rb +1 -1
- metadata +2 -2
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-02-
|
4
|
+
s.version = '1.0.30'
|
5
|
+
s.date = '2014-02-18'
|
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
@@ -351,6 +351,7 @@ module JqrHelpers
|
|
351
351
|
# that it will work inside an existing form. Instead, it appends a form
|
352
352
|
# to the body, and uses a click handler to submit it.
|
353
353
|
# This does not support the :remote option - instead, use {#button_to_ajax}.
|
354
|
+
# This supports the :target option to pass to the form.
|
354
355
|
# @param content [String] the text of the button.
|
355
356
|
# @param url [String|Hash] the URL (or URL hash) the button should go to.
|
356
357
|
# @param options [Hash] HTML Options to pass to the button.
|
@@ -371,6 +372,7 @@ module JqrHelpers
|
|
371
372
|
options['data-disable-with'] = disable_with if disable_with
|
372
373
|
options['data-method'] = method if method
|
373
374
|
options['data-url'] = url
|
375
|
+
options[:'data-target'] = options.delete(:target)
|
374
376
|
options[:class] ||= ''
|
375
377
|
options[:class] << ' ujs-external-button'
|
376
378
|
if token_name
|
data/lib/jqr-helpers/version.rb
CHANGED
metadata
CHANGED
@@ -2,14 +2,14 @@
|
|
2
2
|
name: jqr-helpers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 1.0.
|
5
|
+
version: 1.0.30
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Daniel Orner
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-02-
|
12
|
+
date: 2014-02-18 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|