]> sipb.mit.edu Git - ikiwiki.git/commitdiff
bugfixes
authorJoey Hess <joey@kitenet.net>
Wed, 15 Jun 2011 23:48:49 +0000 (19:48 -0400)
committerJoey Hess <joey@kitenet.net>
Wed, 15 Jun 2011 23:48:49 +0000 (19:48 -0400)
Make sure staged attachments sort as earlier, even if they're not really.

IkiWiki/Plugin/attachment.pm

index 9a4af4f2befb70472d8a23ccfb0f8ac2c3e4016c..6004a09828721af15032f7e3396e40d99141aee0 100644 (file)
@@ -94,7 +94,7 @@ sub formbuilder_setup (@) {
                # Add all the javascript used by the attachments interface.
                require IkiWiki::Plugin::toggle;
                my $js=IkiWiki::Plugin::toggle::include_javascript($params{page});
                # Add all the javascript used by the attachments interface.
                require IkiWiki::Plugin::toggle;
                my $js=IkiWiki::Plugin::toggle::include_javascript($params{page});
-               $js.='<link rel="stylesheet" href="'.urlto("ikiwiki/jquery-ui.min.css", $params{page}).' id="theme">'."\n";
+               $js.='<link rel="stylesheet" href="'.urlto("ikiwiki/jquery-ui.min.css", $params{page}).'" id="theme">'."\n";
                my @jsfiles=qw{jquery.min jquery-ui.min
                        jquery.tmpl.min jquery.iframe-transport
                        jquery.fileupload jquery.fileupload-ui
                my @jsfiles=qw{jquery.min jquery-ui.min
                        jquery.tmpl.min jquery.iframe-transport
                        jquery.fileupload jquery.fileupload-ui
@@ -354,7 +354,7 @@ sub attachment_list ($) {
                my $base=IkiWiki::basename($file);
                my $f=$loc.$base;
                $attachments{$f}={
                my $base=IkiWiki::basename($file);
                my $f=$loc.$base;
                $attachments{$f}={
-                       $std->($f, (stat($file))[9], stored_msg(), (stat(_))[7]),
+                       $std->($f, (stat($file))[9]*2, stored_msg(), (stat(_))[7]),
                        link => $base,
                }
        }
                        link => $base,
                }
        }