From f77452b7caa7346625882d20f396b7154cda6a54 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Wed, 15 Jun 2011 18:37:12 -0400 Subject: [PATCH 1/1] WIP --- IkiWiki/Plugin/attachment.pm | 2 +- templates/editpage.tmpl | 73 ++++++++++-------------------------- 2 files changed, 21 insertions(+), 54 deletions(-) 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
+ + + + +
-- 2.26.2