Browse Source

修复上传文件时当文件临时id为0的情况

wechat_public_accounts
linyaostalker 5 years ago
parent
commit
59ec48ce2d
  1. 2
      vendor/iron/widgets/Upload.php

2
vendor/iron/widgets/Upload.php

@ -198,7 +198,7 @@ class Upload extends InputWidget
success: function(data) success: function(data)
{ {
var imageval = $('#{$this->fillInId}').val(); var imageval = $('#{$this->fillInId}').val();
if(imageval == ''){
if(imageval == '' || imageval == 0){
$('#{$this->fillInId}').val(data); $('#{$this->fillInId}').val(data);
}else{ }else{
$('#{$this->fillInId}').val($('#{$this->fillInId}').val()+','+data); $('#{$this->fillInId}').val($('#{$this->fillInId}').val()+','+data);

Loading…
Cancel
Save