lib/jqr-helpers/helpers.rb in jqr-helpers-1.0.22 vs lib/jqr-helpers/helpers.rb in jqr-helpers-1.0.23
- old
+ new
@@ -457,9 +457,10 @@
new_options[:'data-type'] = 'html'
new_options[:'data-callback'] = options.delete(:callback)
new_options[:'data-close-dialog'] = options.delete(:close_dialog)
new_options[:'data-use-dialog-opener'] = options.delete(:use_dialog_opener)
new_options[:'data-refresh'] = true if options.delete(:refresh)
+ new_options[:'data-redirect'] = true if options.delete(:redirect)
new_options[:'data-scroll-to'] = true if options.delete(:scroll_to)
new_options[:'data-throbber'] = options.delete(:throbber) || 'small'
[:update, :append, :delete].each do |result_method|
selector = options.delete(result_method)