MINOR Sending 'ID' parameter from containing form alongside UploadField uploads, in order to set the correct context in in the controller (in the case of CMSFileAddController, that's the parent folder)

This commit is contained in:
Ingo Schommer 2012-03-02 15:21:12 +01:00
parent 9f5e26d12b
commit 4345eaa61b

View File

@ -40,7 +40,10 @@
this.fileupload($.extend(true,
{
formData: function(form) {
return [{name: 'SecurityID', value: $(form).find(':input[name=SecurityID]').val()}];
return [
{name: 'SecurityID', value: $(form).find(':input[name=SecurityID]').val()},
{name: 'ID', value: $(form).find(':input[name=ID]').val()}
];
},
errorMessages: {
// errorMessages for all error codes suggested from the plugin author, some will be overwritten by the config comming from php