lib/muck_engine/flash_errors.rb in muck-engine-0.4.14 vs lib/muck_engine/flash_errors.rb in muck-engine-0.4.15

- old
+ new

@@ -28,9 +28,15 @@ #nothing '' end end + # Output a message container that is hidden by default. This can be used to create html where an + # ajax call can drop messages. Just do something like jQuery('#message_id).html('some message'); + def output_message_container(message_id = 'message_id', css_class = 'notify-box') + render :partial => 'shared/message_container', :locals => { :message_id => message_id, :css_class => css_class } + end + # Output a page update that will display messages in the flash def output_admin_messages(fields = nil, title = '', options = { :class => 'notify-box' }, flash_only = false) @fields = fields @title = title @options = options \ No newline at end of file