From 407ce3bd8fa6ef6fe3c73d41bb0a0d11e64bac99 Mon Sep 17 00:00:00 2001 From: Zach Copley Date: Tue, 9 Dec 2008 16:06:54 -0500 Subject: New AjaxWebChannel for returning ajaxy responses to notice input box commands darcs-hash:20081209210654-7b5ce-2ef432aa8cb7bf5cc1a973a71eb70e6b2aae4ab6.gz --- actions/newnotice.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'actions') diff --git a/actions/newnotice.php b/actions/newnotice.php index 932099c60..8ac36320d 100644 --- a/actions/newnotice.php +++ b/actions/newnotice.php @@ -66,7 +66,11 @@ class NewnoticeAction extends Action { $cmd = $inter->handle_command($user, $content_shortened); if ($cmd) { - $cmd->execute(new WebChannel()); + if ($this->boolean('ajax')) { + $cmd->execute(new AjaxWebChannel()); + } else { + $cmd->execute(new WebChannel()); + } return; } -- cgit v1.2.3-54-g00ecf