jqr-helpers 1.0.34 → 1.0.35
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.
- data/Readme.md +1 -0
- data/jqr-helpers.gemspec +1 -1
- data/lib/jqr-helpers/helpers.rb +1 -1
- data/lib/jqr-helpers/version.rb +1 -1
- metadata +1 -1
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
data/lib/jqr-helpers/helpers.rb
CHANGED
|
@@ -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)
|
data/lib/jqr-helpers/version.rb
CHANGED