summaryrefslogtreecommitdiff
path: root/share/www/script/jquery.dialog.js
diff options
context:
space:
mode:
authorChristopher Lenz <cmlenz@apache.org>2008-08-30 21:09:31 +0000
committerChristopher Lenz <cmlenz@apache.org>2008-08-30 21:09:31 +0000
commit796a66de5f10b219c5ed196a8c97ed4bd3a227a2 (patch)
treec7283a48b96f9f28b4a815ca47ebbee7064e0732 /share/www/script/jquery.dialog.js
parentc5a79c36f230b69e5ad810474316a52474bc4ad9 (diff)
Implement attachment uploading in Futon.
git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@690590 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'share/www/script/jquery.dialog.js')
-rw-r--r--share/www/script/jquery.dialog.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/share/www/script/jquery.dialog.js b/share/www/script/jquery.dialog.js
index 1fd3d572..199a1c51 100644
--- a/share/www/script/jquery.dialog.js
+++ b/share/www/script/jquery.dialog.js
@@ -75,6 +75,9 @@
$.each($("form :input", dialog).serializeArray(), function(i, field) {
data[field.name] = field.value;
});
+ $("form :file", dialog).each(function() {
+ data[this.name] = this.value; // file inputs need special handling
+ });
options.submit(data, function callback(errors) {
if (errors == null || errors == {}) {
dismiss();