Fixes issue #1864
This commit is contained in:
parent
1cb2fd70c2
commit
d1264f551b
|
@ -304,7 +304,7 @@ function media_upload_xhr($ns,$auth){
|
|||
'mime' => $mime,
|
||||
'ext' => $ext),
|
||||
$ns.':'.$id,
|
||||
(($INPUT->get->str('ow') == 'checked') ? true : false),
|
||||
(($INPUT->get->str('ow') == 'true') ? true : false),
|
||||
$auth,
|
||||
'copy'
|
||||
);
|
||||
|
|
|
@ -323,7 +323,7 @@ qq.extend(qq.UploadHandlerXhr.prototype, {
|
|||
// build query string
|
||||
params = params || {};
|
||||
params['qqfile'] = name;
|
||||
params['ow'] = jQuery('.dw__ow').attr('checked');
|
||||
params['ow'] = jQuery('.dw__ow').is(':checked');
|
||||
var queryString = qq.obj2url(params, this._options.action);
|
||||
|
||||
xhr.open("POST", queryString, true);
|
||||
|
|
Loading…
Reference in New Issue