diff options
author | Zach Copley <zach@controlyourself.ca> | 2008-12-09 16:06:54 -0500 |
---|---|---|
committer | Zach Copley <zach@controlyourself.ca> | 2008-12-09 16:06:54 -0500 |
commit | 407ce3bd8fa6ef6fe3c73d41bb0a0d11e64bac99 (patch) | |
tree | 28437bad54c893207ba43fff9d8e4787636e867e /actions | |
parent | 792cb7a5358c4b7f80b124d5a80c625a7d4d89ea (diff) |
New AjaxWebChannel for returning ajaxy responses to notice input box commands
darcs-hash:20081209210654-7b5ce-2ef432aa8cb7bf5cc1a973a71eb70e6b2aae4ab6.gz
Diffstat (limited to 'actions')
-rw-r--r-- | actions/newnotice.php | 6 |
1 files changed, 5 insertions, 1 deletions
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; } |