Skip to content

Commit

Permalink
Update edit.js
Browse files Browse the repository at this point in the history
  • Loading branch information
star7th authored Sep 6, 2017
1 parent db6b26c commit 3963adf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Public/js/page/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -429,13 +429,13 @@ $(function() {
// 服务器返回错误
case 'error':
$the.attr('disabled', false);
layer.closeDialog(layer_index);
$.closeDialog(layer_index);
$.alert('图片上传失败');
break;
// 上传成功
case 'success':
$the.attr('disabled', false);
layer.closeDialog(layer_index);
$.closeDialog(layer_index);
if (data.success == 1) {
var value = '![](' + data.url + ')';
editormd.insertValue(value);
Expand Down

0 comments on commit 3963adf

Please sign in to comment.