diff --git a/web/app/controllers/group.php b/web/app/controllers/group.php index 7a82a71..f71c23d 100644 --- a/web/app/controllers/group.php +++ b/web/app/controllers/group.php @@ -177,14 +177,14 @@ }; $remove_assignment_form->runAtServer(); - $announcement_form = new UOJForm('announcement_form'); - $announcement_form->addVTextArea('announcement_content', '公告', $group['announcement'], + $announcement_form = new UOJForm('announcement_form'); + $announcement_form->addVTextArea('announcement_content', '公告', $group['announcement'], function ($x) { return ''; }, null ); - $announcement_form->submit_button_config['align'] = 'compressed'; + $announcement_form->submit_button_config['align'] = 'compressed'; $announcement_form->submit_button_config['text'] = '更新公告'; $announcement_form->handle = function() { global $group_id, $myUser; diff --git a/web/app/views/page-header.php b/web/app/views/page-header.php index 22f41eb..29f3c2b 100644 --- a/web/app/views/page-header.php +++ b/web/app/views/page-header.php @@ -295,7 +295,7 @@