allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jetm...@apache.org
Subject [1/7] allura git commit: [#7998] ticket:878 fix request for multiple upload
Date Fri, 08 Jan 2016 11:05:41 GMT
Repository: allura
Updated Branches:
  refs/heads/ib/7998a [created] d2e8761bd


[#7998] ticket:878 fix request for multiple upload


Project: http://git-wip-us.apache.org/repos/asf/allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/allura/commit/a2d54240
Tree: http://git-wip-us.apache.org/repos/asf/allura/tree/a2d54240
Diff: http://git-wip-us.apache.org/repos/asf/allura/diff/a2d54240

Branch: refs/heads/ib/7998a
Commit: a2d542403f87bb670144c6d50b2e400001b07b6e
Parents: 7fea8f6
Author: Denis Kotov <deniskkotov@gmail.com>
Authored: Wed Dec 23 14:25:33 2015 +0200
Committer: Denis Kotov <deniskkotov@gmail.com>
Committed: Thu Jan 7 21:17:38 2016 +0200

----------------------------------------------------------------------
 ForgeWiki/forgewiki/templates/wiki/page_edit.html | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/allura/blob/a2d54240/ForgeWiki/forgewiki/templates/wiki/page_edit.html
----------------------------------------------------------------------
diff --git a/ForgeWiki/forgewiki/templates/wiki/page_edit.html b/ForgeWiki/forgewiki/templates/wiki/page_edit.html
index e1e1940..be2caae 100644
--- a/ForgeWiki/forgewiki/templates/wiki/page_edit.html
+++ b/ForgeWiki/forgewiki/templates/wiki/page_edit.html
@@ -141,9 +141,12 @@
       processData: false,
       contentType: false,
       success: function(data) {
-        var attachment_name = $("#file_info")[0].files[0].name;
-        var attachment_url = page_url + 'attachment/' + attachment_name;
-        update_attachments(attachment_url, attachment_name, $("#file_info")[0].files[0].size);
+        var i;
+        for (i = 0; i < $("#file_info")[0].files.length; i++){
+          var attachment_name = $("#file_info")[0].files[i].name;
+          var attachment_url = page_url + 'attachment/' + attachment_name;
+          update_attachments(attachment_url, attachment_name, $("#file_info")[0].files[i].size);
+        }
       }
     });
   };


Mime
View raw message