allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brond...@apache.org
Subject [4/7] allura git commit: [#7998] ticket:878 changed attachments_list style, fix geting filename
Date Fri, 08 Jan 2016 16:36:11 GMT
[#7998] ticket:878 changed attachments_list style, fix geting filename


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

Branch: refs/heads/master
Commit: 7fea8f643832b72f4036a86dcbbd7e3cb01fcd06
Parents: ebd8e6b
Author: Denis Kotov <deniskkotov@gmail.com>
Authored: Wed Dec 23 13:49:11 2015 +0200
Committer: Denis Kotov <deniskkotov@gmail.com>
Committed: Thu Jan 7 21:17:38 2016 +0200

----------------------------------------------------------------------
 Allura/allura/templates/widgets/attachment_list.html | 1 +
 ForgeWiki/forgewiki/templates/wiki/page_edit.html    | 4 ++--
 2 files changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/allura/blob/7fea8f64/Allura/allura/templates/widgets/attachment_list.html
----------------------------------------------------------------------
diff --git a/Allura/allura/templates/widgets/attachment_list.html b/Allura/allura/templates/widgets/attachment_list.html
index 45f6c24..c553dd7 100644
--- a/Allura/allura/templates/widgets/attachment_list.html
+++ b/Allura/allura/templates/widgets/attachment_list.html
@@ -53,6 +53,7 @@
           {{lib.csrf_token()}}
         </form>
       </div>
+      <div style="clear:both"></div>
     {% endfor %}
     </div>
   {% endif %}

http://git-wip-us.apache.org/repos/asf/allura/blob/7fea8f64/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 9f3335a..e1e1940 100644
--- a/ForgeWiki/forgewiki/templates/wiki/page_edit.html
+++ b/ForgeWiki/forgewiki/templates/wiki/page_edit.html
@@ -128,7 +128,7 @@
                         '<span>' +
                           '<input type="submit" value="Delete File"/>' +
                         '</span>' +
-                      '</form></div>';
+                      '</form></div><div style="clear:both"></div>';
       $(new_attach).prependTo($('.attachment_files'));
     };
   };
@@ -141,7 +141,7 @@
       processData: false,
       contentType: false,
       success: function(data) {
-        var attachment_name = $("#file_info").val();
+        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);
       }


Mime
View raw message