I sometimes need a delayed redirection (such as when displaying a short text in modal box after completing a form), so I've created this patch to add this command.

Comments

daniboy’s picture

StatusFileSize
new1.17 KB

patch

daniboy’s picture

Status: Active » Needs review
daniboy’s picture

I've rewritten the patch, this time it doesn't bloat the API. Please ignore the first patch.

merlinofchaos’s picture

Status: Needs review » Needs work

I did some asking around, and using setTimeout with a delay of 0 has different effects on different browsers. We should check and not use setTimeout in that case.

daniboy’s picture

Now with check for delay

merlinofchaos’s picture

Status: Needs work » Needs review

Setting back to nr so it gets seen.

merlinofchaos’s picture

Status: Needs review » Fixed

Committed. Thanks!

Status: Fixed » Closed (fixed)

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

vasike’s picture

same thing for reload?