diff options
author | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2007-03-17 22:33:34 +0000 |
---|---|---|
committer | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2007-03-17 22:33:34 +0000 |
commit | 6003422f4577be43b387e608d531c59079b65db8 (patch) | |
tree | b4ff9c9694d14a93c17b25c772a84275e5e87edc | |
parent | c1bf0eaf5d94371ed6228dcc82277ffa7d594904 (diff) |
simplify preview code
-rw-r--r-- | IkiWiki/CGI.pm | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/IkiWiki/CGI.pm b/IkiWiki/CGI.pm index 1c4e088dc..73727805a 100644 --- a/IkiWiki/CGI.pm +++ b/IkiWiki/CGI.pm @@ -353,7 +353,6 @@ sub cgi_editpage ($$) { #{{{ $file=$page.".".$type; } - $form->field(name => "do", type => 'hidden'); $form->field(name => "from", type => 'hidden'); $form->field(name => "rcsinfo", type => 'hidden'); @@ -390,17 +389,11 @@ sub cgi_editpage ($$) { #{{{ return; } elsif ($form->submitted eq "Preview") { - my $content=$form->field('editcontent'); - my $comments=$form->field('comments'); - $form->field(name => "editcontent", - value => $content, force => 1); - $form->field(name => "comments", - value => $comments, force => 1); $form->tmpl_param("page_preview", htmlize($page, $type, linkify($page, "", preprocess($page, $page, - filter($page, $content), 0, 1)))); + filter($page, $form->field('editcontent')), 0, 1)))); } else { $form->tmpl_param("page_preview", ""); |