lib/jqr-helpers/helpers.rb in jqr-helpers-1.0.19 vs lib/jqr-helpers/helpers.rb in jqr-helpers-1.0.20

- old
+ new

@@ -156,9 +156,15 @@ html_options={}) link_to_remote_dialog(url, html_content, dialog_options, html_options.merge(:tag_name => 'button')) end + # Set the dialog title from +inside+ the dialog itself. This prints a + # hidden div which is read by the UJS callback to set the title. + def dialog_title(content) + content_tag :div, content, :class => 'ujs-dialog-title-hidden' + end + # Create a link that fires off a jQuery Ajax request. This is basically # a wrapper around link_to :remote => true. # If a block is given, url and options will be shifted left by 1 position # and the block contents will be used for the body. # @param body [String] the text/content that goes inside the tag.