mirror of
https://github.com/wintercms/winter.git
synced 2024-06-28 05:33:29 +02:00
parent
acf4577255
commit
ba0da07c46
2
modules/system/assets/js/framework-min.js
vendored
2
modules/system/assets/js/framework-min.js
vendored
@ -19,7 +19,7 @@ $.each($el.parents('[data-request-data]').toArray().reverse(),function extendReq
|
||||
if($el.is(':input')&&!$form.length){inputName=$el.attr('name')
|
||||
if(inputName!==undefined&&options.data[inputName]===undefined){options.data[inputName]=$el.val()}}
|
||||
if(options.data!==undefined&&!$.isEmptyObject(options.data)){$.extend(data,options.data)}
|
||||
if(useFiles){requestData=new FormData($form.length?$form.get(0):null)
|
||||
if(useFiles){requestData=new FormData($form.length?$form.get(0):undefined)
|
||||
if($el.is(':file')&&inputName){$.each($el.prop('files'),function(){requestData.append(inputName,this)})
|
||||
delete data[inputName]}
|
||||
$.each(data,function(key){requestData.append(key,this)})}
|
||||
|
@ -19,7 +19,7 @@ $.each($el.parents('[data-request-data]').toArray().reverse(),function extendReq
|
||||
if($el.is(':input')&&!$form.length){inputName=$el.attr('name')
|
||||
if(inputName!==undefined&&options.data[inputName]===undefined){options.data[inputName]=$el.val()}}
|
||||
if(options.data!==undefined&&!$.isEmptyObject(options.data)){$.extend(data,options.data)}
|
||||
if(useFiles){requestData=new FormData($form.length?$form.get(0):null)
|
||||
if(useFiles){requestData=new FormData($form.length?$form.get(0):undefined)
|
||||
if($el.is(':file')&&inputName){$.each($el.prop('files'),function(){requestData.append(inputName,this)})
|
||||
delete data[inputName]}
|
||||
$.each(data,function(key){requestData.append(key,this)})}
|
||||
|
@ -91,7 +91,7 @@ if (window.jQuery.request !== undefined) {
|
||||
}
|
||||
|
||||
if (useFiles) {
|
||||
requestData = new FormData($form.length ? $form.get(0) : null)
|
||||
requestData = new FormData($form.length ? $form.get(0) : undefined)
|
||||
|
||||
if ($el.is(':file') && inputName) {
|
||||
$.each($el.prop('files'), function() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user