Currently, in hosting_task_menu(), we pass all tasks through hosting_task_confirm_form(), regardless of a task's 'dialog' parameter. This results in launching the overlay briefly, before refreshing the page. Since #2212149: Improve task queue AJAX refresh now allows for refreshing the task list more responsively, we shouldn't have to do this anymore. Ideally, when no dialog is required, the call to hosting_add_task() could be handled entirely by AJAX (with some kind of fallback, if no JS is running, I suppose). Similarly, when a dialog is required, hosting_task_confirm_form_submit() would ideally just close the dialog, and not necessarily set a redirect.

Comments

ergonlogic’s picture

Fixed in commit 823dc45 on dev/2212149. We now have an AJAX callback to add tasks that don't require a confirmation form. I'll follow up in #2212149: Improve task queue AJAX refresh.

ergonlogic’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

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