You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by je...@apache.org on 2016/01/08 12:05:44 UTC
[4/7] allura git commit: [#7998] ticket:878 changed attachments_list
style, fix geting filename
[#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/ib/7998a
Commit: 7fea8f643832b72f4036a86dcbbd7e3cb01fcd06
Parents: ebd8e6b
Author: Denis Kotov <de...@gmail.com>
Authored: Wed Dec 23 13:49:11 2015 +0200
Committer: Denis Kotov <de...@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);
}