jqr-helpers 1.0.34 → 1.0.35

Sign up to get free protection for your applications and to get access to all the features.
data/Readme.md CHANGED
@@ -123,6 +123,7 @@ an ancestor of the button tag with the class of `my-parent`.
123
123
 
124
124
  Other Ajax options:
125
125
 
126
+ * `:return_type` (String) - the expected return type, e.g. 'text' or 'html'.
126
127
  * `:empty` (String) - the ID of an element which should be shown when the
127
128
  element you are appending/deleting from is empty. If you delete the last child
128
129
  from an element, that element will be hidden and the "empty" element will
data/jqr-helpers.gemspec CHANGED
@@ -1,7 +1,7 @@
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.34'
4
+ s.version = '1.0.35'
5
5
  s.date = '2014-03-04'
6
6
  s.summary = 'Helpers to print unobtrusive jQuery-UI tags.'
7
7
  s.description = <<-EOF
@@ -524,7 +524,7 @@ module JqrHelpers
524
524
  new_options = {}
525
525
  new_options[:class] = options[:class] || ''
526
526
  new_options[:class] << ' ujs-ajax'
527
- new_options[:'data-type'] = 'html'
527
+ new_options[:'data-type'] = options[:return_type] || 'html'
528
528
  new_options[:'data-callback'] = options.delete(:callback)
529
529
  new_options[:'data-close-dialog'] = options.delete(:close_dialog)
530
530
  new_options[:'data-use-dialog-opener'] = options.delete(:use_dialog_opener)
@@ -1,6 +1,6 @@
1
1
  module JqrHelpers
2
2
  # @private
3
3
  module Rails
4
- VERSION = '1.0.34'
4
+ VERSION = '1.0.35'
5
5
  end
6
6
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: jqr-helpers
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 1.0.34
5
+ version: 1.0.35
6
6
  platform: ruby
7
7
  authors:
8
8
  - Daniel Orner