edittemplate: Don't wipe out edits on preview.
parent
3c542cc279
commit
d06096ad0d
|
@ -64,7 +64,9 @@ sub formbuilder (@) { #{{{
|
||||||
my %params=@_;
|
my %params=@_;
|
||||||
my $form=$params{form};
|
my $form=$params{form};
|
||||||
|
|
||||||
return if $form->field("do") ne "create";
|
return if $form->field("do") ne "create" ||
|
||||||
|
length $form->field("editcontent");
|
||||||
|
|
||||||
my $page=$form->field("page");
|
my $page=$form->field("page");
|
||||||
|
|
||||||
# The tricky bit here is that $page is probably just the base
|
# The tricky bit here is that $page is probably just the base
|
||||||
|
|
|
@ -16,6 +16,7 @@ ikiwiki (2.62) UNRELEASED; urgency=low
|
||||||
* listdirectives: New plugin. (willu)
|
* listdirectives: New plugin. (willu)
|
||||||
* filecheck: New plugin factoring out the PageSpec additions that were
|
* filecheck: New plugin factoring out the PageSpec additions that were
|
||||||
originally part of the attachment plugin.
|
originally part of the attachment plugin.
|
||||||
|
* edittemplate: Don't wipe out edits on preview.
|
||||||
|
|
||||||
-- Joey Hess <joeyh@debian.org> Thu, 21 Aug 2008 16:20:58 -0400
|
-- Joey Hess <joeyh@debian.org> Thu, 21 Aug 2008 16:20:58 -0400
|
||||||
|
|
||||||
|
|
|
@ -1 +1,3 @@
|
||||||
It appears that the 'editcontent' textarea that should be saved across previews is being overridden whenever an edittemplate is in use, 'losing' edits on preview unless the browser maintains them in history.
|
It appears that the 'editcontent' textarea that should be saved across previews is being overridden whenever an edittemplate is in use, 'losing' edits on preview unless the browser maintains them in history.
|
||||||
|
|
||||||
|
> ugly one... [[done]] --[[Joey]]
|
||||||
|
|
Loading…
Reference in New Issue