- Added a better confirmation message when deleting content.
- Added a "commit" option as well as a listing of version tags per the rough edges discussions on IRC. - Added a "close" or "archive" option to replies.
This commit is contained in:
parent
58566a6ed6
commit
9aa86225be
9 changed files with 413 additions and 371 deletions
|
|
@ -140,7 +140,6 @@ sub chopTitle {
|
|||
sub commit {
|
||||
my $self = shift;
|
||||
$self->SUPER::commit;
|
||||
$self->getThread->unarchive if ($self->getThread->get("status") eq "archived");
|
||||
$self->notifySubscribers;
|
||||
if ($self->isNew) {
|
||||
if ($self->session->setting->get("useKarma") && $self->getThread->getParent->get("karmaPerPost")) {
|
||||
|
|
@ -673,6 +672,11 @@ sub processPropertiesFromFormPost {
|
|||
$self->getThread->stick if ($self->session->form->process("stick"));
|
||||
}
|
||||
}
|
||||
if ($self->session->form->process("archive") && $self->getThread->getParent->canModerate) {
|
||||
$self->getThread->archive;
|
||||
} elsif ($self->getThread->get("status") eq "archived") {
|
||||
$self->getThread->unarchive;
|
||||
}
|
||||
$self->getThread->subscribe if ($self->session->form->process("subscribe"));
|
||||
delete $self->{_storageLocation};
|
||||
my $storage = $self->getStorageLocation;
|
||||
|
|
@ -1002,6 +1006,9 @@ sub www_edit {
|
|||
$content = $self->getValue("content");
|
||||
$title = $self->getValue("title");
|
||||
}
|
||||
$var{'archive.form'} = WebGUI::Form::yesNo($self->session, {
|
||||
name=>"archive"
|
||||
});
|
||||
$var{'form.header'} .= WebGUI::Form::hidden($self->session, {name=>"proceed", value=>"showConfirmation"});
|
||||
if ($self->session->form->process("title") || $self->session->form->process("content") || $self->session->form->process("synopsis")) {
|
||||
$var{'preview.title'} = WebGUI::HTML::filter($self->session->form->process("title"),"all");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue