mirror of https://gitee.com/karson/fastadmin.git
commonsearch-table延时隐藏
parent
765c021978
commit
87baa0ff18
|
|
@ -9927,12 +9927,17 @@ define('form',['jquery', 'bootstrap', 'upload', 'validator'], function ($, undef
|
|||
var initCommonSearch = function (pColumns, that) {
|
||||
var vFormCommon = createFormCommon(pColumns, that);
|
||||
|
||||
var vModal = sprintf("<div class=\"commonsearch-table %s\">", that.options.searchFormVisible ? "" : "hidden");
|
||||
var vModal = "<div class=\"commonsearch-table\">";
|
||||
vModal += vFormCommon;
|
||||
vModal += "</div>";
|
||||
that.$container.prepend($(vModal));
|
||||
that.$commonsearch = $(".commonsearch-table", that.$container);
|
||||
var form = $("form.form-commonsearch", that.$commonsearch);
|
||||
if(!that.options.searchFormVisible){
|
||||
setTimeout(function () {
|
||||
that.$commonsearch.addClass('hidden');
|
||||
},100);
|
||||
}
|
||||
|
||||
require(['form'], function (Form) {
|
||||
Form.api.bindevent(form);
|
||||
|
|
@ -11568,18 +11573,21 @@ define("drop", function(){});
|
|||
if (options.close && $("li", navobj).size() > 0) {
|
||||
tabitem.append(' <i class="close-tab fa fa-remove"></i>');
|
||||
}
|
||||
//创建新TAB的内容
|
||||
conitem = $('<div role="tabpanel" class="tab-pane" id="' + conid + '"></div>');
|
||||
//是否指定TAB内容
|
||||
if (opts.content) {
|
||||
conitem.append(opts.content);
|
||||
} else if (options.iframeUse && !opts.ajax) {//没有内容,使用IFRAME打开链接
|
||||
var height = options.iframeHeight;
|
||||
conitem.append('<iframe src="' + url + '" width="100%" height="' + height + '" frameborder="no" border="0" marginwidth="0" marginheight="0" scrolling-x="no" scrolling-y="auto" allowtransparency="yes"></iframe></div>');
|
||||
} else {
|
||||
$.get(url, function (data) {
|
||||
conitem.append(data);
|
||||
});
|
||||
if (conitem.size() === 0) {
|
||||
//创建新TAB的内容
|
||||
conitem = $('<div role="tabpanel" class="tab-pane" id="' + conid + '"></div>');
|
||||
//是否指定TAB内容
|
||||
if (opts.content) {
|
||||
conitem.append(opts.content);
|
||||
} else if (options.iframeUse && !opts.ajax) {//没有内容,使用IFRAME打开链接
|
||||
var height = options.iframeHeight;
|
||||
conitem.append('<iframe src="' + url + '" width="100%" height="' + height + '" frameborder="no" border="0" marginwidth="0" marginheight="0" scrolling-x="no" scrolling-y="auto" allowtransparency="yes"></iframe></div>');
|
||||
} else {
|
||||
$.get(url, function (data) {
|
||||
conitem.append(data);
|
||||
});
|
||||
}
|
||||
tabobj.append(conitem);
|
||||
}
|
||||
//加入TABS
|
||||
if ($('.tabdrop li', navobj).size() > 0) {
|
||||
|
|
@ -11587,7 +11595,6 @@ define("drop", function(){});
|
|||
} else {
|
||||
navobj.append(tabitem);
|
||||
}
|
||||
tabobj.append(conitem);
|
||||
} else {
|
||||
//强制刷新iframe
|
||||
if (options.iframeForceRefresh) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue