|
@@ -2051,11 +2051,15 @@ function showAlert(msg, func, title, index, t)
|
|
|
} else {
|
|
|
config.yes = function(index)
|
|
|
{
|
|
|
+ $('.layui-layer-content').css('overflow-x', 'auto');
|
|
|
+ $('#update_button').show();
|
|
|
layer.close(index);
|
|
|
};
|
|
|
}
|
|
|
config.btn2 = function(index)
|
|
|
{
|
|
|
+ $('.layui-layer-content').css('overflow-x', 'auto');
|
|
|
+ $('#update_button').show();
|
|
|
layer.close(index);
|
|
|
};
|
|
|
var index = layer.open(config);
|
|
@@ -2084,8 +2088,6 @@ function fastEdit(e, url, title, col, index, type)
|
|
|
form.addClass('layui-card-body');
|
|
|
} else {
|
|
|
var form = $(t).find('form').eq(0);
|
|
|
- $('.layui-layer-content').css('overflow-x', 'hidden');
|
|
|
- $('#update_button').hide();
|
|
|
}
|
|
|
form.addClass('fast');
|
|
|
form.find('#function').eq(0).val('showYes');
|
|
@@ -2115,7 +2117,8 @@ function fastEdit(e, url, title, col, index, type)
|
|
|
} else {
|
|
|
showAlert(html, func, title, type);
|
|
|
}
|
|
|
-
|
|
|
+ $('.layui-layer-content').css('overflow-x', 'hidden');
|
|
|
+ $('#update_button').hide();
|
|
|
layui.use(['formSelects'], function(){
|
|
|
$("select").each(function()
|
|
|
{
|
|
@@ -2809,5 +2812,13 @@ $("textarea").on("postpaste", function()
|
|
|
|
|
|
function showYes()
|
|
|
{
|
|
|
- showAlert('保存成功');
|
|
|
+ showAlert('保存成功', function() {
|
|
|
+ if (select_api_open) {
|
|
|
+ $('.layui-layer-content').css('overflow-x', 'auto');
|
|
|
+ $('#update_button').show();
|
|
|
+ layer.closeAll();
|
|
|
+ } else {
|
|
|
+ location.reload()
|
|
|
+ }
|
|
|
+ });
|
|
|
}
|