修复插件管理支付弹窗为空的BUG

pull/59/head
Karson 2018-05-07 12:36:48 +08:00
parent e57171dea9
commit 2a990d3ceb
1 changed files with 5 additions and 5 deletions

View File

@ -278,10 +278,10 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form', 'template'], function
}
});
} else if (ret && ret.code === -2) {
Fast.api.open(ret.data.payurl, __('Pay now'), {
top.Fast.api.open(ret.data.payurl, __('Pay now'), {
area: ["650px", "700px"],
end: function () {
Layer.alert(__('Pay tips'));
top.Layer.alert(__('Pay tips'));
}
});
} else if (ret && ret.code === -3) {
@ -486,7 +486,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form', 'template'], function
formatter: {
title: function (value, row, index) {
var title = '<a class="title" href="' + row.url + '" data-toggle="tooltip" title="' + __('View addon home page') + '" target="_blank">' + value + '</a>';
if (row.screenshots.length > 0) {
if (row.screenshots && row.screenshots.length > 0) {
title += ' <a href="javascript:;" data-index="' + index + '" class="view-screenshots text-success" title="' + __('View addon screenshots') + '" data-toggle="tooltip"><i class="fa fa-image"></i></a>';
}
return title;