* Allow editing a page and deleting all content, while still disallowing
creating a new page that's entirely empty.master
parent
dc23d4989c
commit
5b2ab63f78
|
@ -310,9 +310,6 @@ sub cgi_editpage ($$) { #{{{
|
|||
fields => \@fields,
|
||||
charset => "utf-8",
|
||||
method => 'POST',
|
||||
validate => {
|
||||
editcontent => '/.+/',
|
||||
},
|
||||
required => [qw{editcontent}],
|
||||
javascript => 0,
|
||||
params => $q,
|
||||
|
@ -356,6 +353,7 @@ sub cgi_editpage ($$) { #{{{
|
|||
$form->field(name => "rcsinfo",
|
||||
value => rcs_prepedit($file), force => 1);
|
||||
}
|
||||
$form->field(name => "editcontent", validate => '/.*/');
|
||||
}
|
||||
else {
|
||||
$type=$form->param('type');
|
||||
|
@ -371,6 +369,7 @@ sub cgi_editpage ($$) { #{{{
|
|||
if (! $form->submitted) {
|
||||
$form->field(name => "rcsinfo", value => "", force => 1);
|
||||
}
|
||||
$form->field(name => "editcontent", validate => '/.+/');
|
||||
}
|
||||
|
||||
$form->field(name => "do", type => 'hidden');
|
||||
|
|
|
@ -36,6 +36,8 @@ ikiwiki (2.16) UNRELEASED; urgency=low
|
|||
* Use a div in the note template rather than a span.
|
||||
* shortcut: Expand %S to the raw input text, not url-encoded.
|
||||
* Don't increment feed numbers when an inline has no feeds. (Nis Martensen)
|
||||
* Allow editing a page and deleting all content, while still disallowing
|
||||
creating a new page that's entirely empty.
|
||||
|
||||
-- Joey Hess <joeyh@debian.org> Mon, 03 Dec 2007 14:47:36 -0500
|
||||
|
||||
|
|
|
@ -4,3 +4,5 @@ On web-editing I erased all the text, entered a change notice and selected
|
|||
*Save Page*.
|
||||
I was, however, thrown back to the web-editing frame, with the old text in it
|
||||
restored, instead of the page being cleared.
|
||||
|
||||
>> [[done]] --[[Joey]]
|
||||
|
|
Loading…
Reference in New Issue