mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-06-18 02:59:27 +00:00
read categories and keywords from drag and drop area
This commit is contained in:
parent
2fa2d33fe9
commit
a7212a0708
|
@ -822,9 +822,13 @@ function onAddClipboard(ev) { /* {{{ */
|
||||||
if (typeof obj.data('comment') !== 'undefined') {
|
if (typeof obj.data('comment') !== 'undefined') {
|
||||||
fd.append('comment', obj.data('comment'));
|
fd.append('comment', obj.data('comment'));
|
||||||
}
|
}
|
||||||
|
if (typeof obj.data('keywords') !== 'undefined') {
|
||||||
|
fd.append('keywords', obj.data('keywords'));
|
||||||
|
}
|
||||||
fd.append('userfile', files[i]);
|
fd.append('userfile', files[i]);
|
||||||
fd.append('command', 'uploaddocument');
|
fd.append('command', 'uploaddocument');
|
||||||
this.getFormData(fd, obj.data('attributes'), 'attributes');
|
this.getFormData(fd, obj.data('attributes'), 'attributes');
|
||||||
|
this.getFormData(fd, obj.data('categories'), 'categories');
|
||||||
// fd.append('path', files[i].webkitRelativePath);
|
// fd.append('path', files[i].webkitRelativePath);
|
||||||
|
|
||||||
statusbar.parent().show();
|
statusbar.parent().show();
|
||||||
|
|
|
@ -853,9 +853,13 @@ function onAddClipboard(ev) { /* {{{ */
|
||||||
if (typeof obj.data('comment') !== 'undefined') {
|
if (typeof obj.data('comment') !== 'undefined') {
|
||||||
fd.append('comment', obj.data('comment'));
|
fd.append('comment', obj.data('comment'));
|
||||||
}
|
}
|
||||||
|
if (typeof obj.data('keywords') !== 'undefined') {
|
||||||
|
fd.append('keywords', obj.data('keywords'));
|
||||||
|
}
|
||||||
fd.append('userfile', files[i]);
|
fd.append('userfile', files[i]);
|
||||||
fd.append('command', 'uploaddocument');
|
fd.append('command', 'uploaddocument');
|
||||||
this.getFormData(fd, obj.data('attributes'), 'attributes');
|
this.getFormData(fd, obj.data('attributes'), 'attributes');
|
||||||
|
this.getFormData(fd, obj.data('categories'), 'categories');
|
||||||
// fd.append('path', files[i].webkitRelativePath);
|
// fd.append('path', files[i].webkitRelativePath);
|
||||||
|
|
||||||
statusbar.parent().show();
|
statusbar.parent().show();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user