This commit is contained in:
錢政維 2017-02-25 21:34:42 +08:00 committed by Andreas Gohr
parent 1cb2fd70c2
commit d1264f551b
2 changed files with 2 additions and 2 deletions

View File

@ -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'
);

View File

@ -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);