jqr-helpers 1.0.29 → 1.0.30

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.
@@ -363,6 +363,7 @@
363
363
  form.attr('method', method);
364
364
  }
365
365
  form.attr('action', button.data('url'));
366
+ form.attr('target', button.data('target'));
366
367
  if (method != 'get') {
367
368
  form.attr('rel', 'nofollow');
368
369
  addHiddenField(form, button.data('token-name'),
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.29'
5
- s.date = '2014-02-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
@@ -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
@@ -1,6 +1,6 @@
1
1
  module JqrHelpers
2
2
  # @private
3
3
  module Rails
4
- VERSION = '1.0.29'
4
+ VERSION = '1.0.30'
5
5
  end
6
6
  end
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.29
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-02 00:00:00.000000000 Z
12
+ date: 2014-02-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails