修复AMP保存提示文字不对问题,批量AMP更新添加错误提示

hotfix/远程访问多媒体中心
尹诚诚 7 years ago
parent e96e96633c
commit 17c9575ab7

@ -123,7 +123,7 @@
$.modaldialog.error('AMP语法错误请看下方错误详情');
$('#amp_error').html(error_msg);
} else {
$.modaldialog.success(responseText.value);
$.modaldialog.success('保存成功!');
}
},
error: function (responseText, statusText, xhr, form) {

@ -29,7 +29,15 @@
"amp_status": 1
},
success: function (result, textStatus) {
$(msg_obj).html("\u0041\u004d\u0050\u66f4\u65b0\u6210\u529f\u0021");
if (result.name === 'no') {
error_msg='';
$.each(responseText.value, function (index, element) {
error_msg=error_msg+'line '+element.line+' col '+element.col+' :'+element.message+'
';
});
$(msg_obj).html("保存失败AMP语法错误!"+'<i class="glyphicon glyphicon-education" title="'+error_msg+'"></i>');
}else{
$(msg_obj).html("\u0041\u004d\u0050\u66f4\u65b0\u6210\u529f\u0021");
}
create_amp_data(++index);
},
error: function () {
@ -69,8 +77,8 @@
<thead>
<tr>
<th class="col-sm-2">#</th>
<th class="col-sm-18">URL</th>
<th class="col-sm-4">更新进度</th>
<th class="col-sm-16">URL</th>
<th class="col-sm-6">更新进度</th>
</tr>
</thead>
<tbody>

Loading…
Cancel
Save