lib/jqr-helpers/helpers.rb in jqr-helpers-1.0.15 vs lib/jqr-helpers/helpers.rb in jqr-helpers-1.0.16
- old
+ new
@@ -69,14 +69,15 @@
html_options[:'data-close-x'] = dialog_options[:close_x]
tag_name = html_options.delete(:tag_name) || :a
html_options[:href] = '#' if tag_name == :a
+ dialog_options[:dialogClass] ||= ''
if dialog_options[:title] == false # not nil or blank
- dialog_options[:dialogClass] ||= ''
dialog_options[:dialogClass] << ' ujs-dialog-modal no-title'
else
dialog_options[:title] ||= 'Dialog'
+ dialog_options[:dialogClass] << ' ujs-dialog-modal'
end
dialog_options[:modal] = true
dialog_options[:width] ||= 'auto'
if dialog_options.delete(:default_buttons)
dialog_options[:buttons] = {