Should be possible.

Comments

mradcliffe’s picture

Title: Use Ajax command insert to inject status messages on page after page widget » Ajax command append is not adding status message after success?
Category: Feature request » Bug report

Actually it is doing it, but not working.

 $commands[] = ajax_command_remove('#messages');
 $commands[] = ajax_command_append('#page', '<div id="messages"><div class="section clearfix">' . theme('status_messages') . '</div></div>');
mradcliffe’s picture

Append should be after. It IS appending the element to the end of #page, but that's going to be at the very bottom of the page!

ajax_command_after('#header'

that's the best that i can do.

mradcliffe’s picture

It should be #breadcrumb, but that is not guaranteed to exist. Maybe a custom javascript command is necessary :(

  • mradcliffe committed 55f1d53 on 7.x-1.x
    Issue #2231939 by mradcliffe: Add custom javascript behavior to add...
mradcliffe’s picture

Status: Active » Fixed

Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.