mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-23 18:03:17 +00:00
Merge pull request #1012 from nlegoff/fix1714
[Ready][3.8] Fix #1714 First status is not applied on document after upload
This commit is contained in:
@@ -396,17 +396,20 @@ $(document).ready(function () {
|
||||
var $this = $(this);
|
||||
|
||||
//get form datas attached to the file
|
||||
data.formData = $.extend(
|
||||
data.context.find('input, select').serializeArray(),
|
||||
$("input", $('.collection-status:visible', UploaderManager.getSettingsBox())).serializeArray(),
|
||||
$("select", UploaderManager.getSettingsBox()).serializeArray()
|
||||
);
|
||||
var dataCollection = [];
|
||||
var pushData = function(k, d) {
|
||||
dataCollection.push(d);
|
||||
};
|
||||
$.each(data.context.find('input, select').serializeArray(), pushData)
|
||||
$.each($("input", $('.collection-status:visible', UploaderManager.getSettingsBox())).serializeArray(), pushData);
|
||||
$.each($("select", UploaderManager.getSettingsBox()).serializeArray(), pushData);
|
||||
|
||||
data.formData.push({
|
||||
dataCollection.push({
|
||||
"name": "b64_image",
|
||||
"value": data["b64_image"]
|
||||
});
|
||||
|
||||
data.formData = dataCollection;
|
||||
//remove current context
|
||||
data.context.remove();
|
||||
|
||||
|
Reference in New Issue
Block a user