From: Joey Hess Date: Wed, 15 Jun 2011 22:37:12 +0000 (-0400) Subject: WIP X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=f77452b7caa7346625882d20f396b7154cda6a54;p=ikiwiki.git WIP --- diff --git a/IkiWiki/Plugin/attachment.pm b/IkiWiki/Plugin/attachment.pm index cb4f4dcd6..fdae8d1e0 100644 --- a/IkiWiki/Plugin/attachment.pm +++ b/IkiWiki/Plugin/attachment.pm @@ -119,7 +119,7 @@ sub formbuilder (@) { return if ! defined $form->field("do") || ($form->field("do") ne "edit" && $form->field("do") ne "create") ; - my $filename=Encode::decode_utf8($q->param('attachments')); + my $filename=Encode::decode_utf8($q->param('attachment')); if (defined $filename && length $filename) { attachment_store($filename, $form, $q, $params{session}); } diff --git a/templates/editpage.tmpl b/templates/editpage.tmpl index 6fe495aa8..b3098a240 100644 --- a/templates/editpage.tmpl +++ b/templates/editpage.tmpl @@ -27,38 +27,25 @@ Attachments -
-
- - - - - - -
+ + + + + + + - - - - - - -
@@ -106,6 +68,11 @@ $(function () { $('#fileupload').fileupload(); }); // initialize upload widget
+ + + + +