2018-06-03 22:26:41 +08:00

37 lines
1.2 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<%String _sView = "tab";%>
<%@ include file="/Resources/CodeParts/TabStrip01.jsp"%>
<script type="text/javascript">
<%try{
if("true".equals(CurPage.getAttribute("TabNowrap"))){%>
$(".tabs_button >ul").width(3000);
<%}
if(CurPage.getAttribute("AfterTabHtml") != null){%>
$('<%=CurPage.getAttribute("AfterTabHtml").replace("'", "\\'")%>').appendTo('#divine_handle_'+tabCompent.getID());
<%}}catch(Exception e){}%>
function addTabItem(sTitle, sUrl, sParas, bOpen){
addTabStripItem(sTitle, sUrl, sParas, bOpen);
}
/**
* 关闭Tab标签前调用方法
* @returns {Boolean} false tab标签不关闭
*/
function closeTab(sItemName, sFrameName){
//alert([sItemName, sFrameName]); // 标签名称、标签对应页面的名称
//alert(frames[sFrameName]); // 取标签的window对象
//alert($("body", frames[sFrameName].document).html()); // 操作标签页面的属相、方法
// 打开一个页面到标签页里去返回false以防止关闭标签
//AsControl.OpenView("/AppMain/Blank.jsp", "", sFrameName);
//return false;
return true;
}
function closeCurTab(){
tabCompent.deleteItem(tabCompent.getSelectedItem());
}
function reloadPreTab(){
}
$(function(){ // 延迟加载方便后续代码修改closeTab方法
tabCompent.setCloseCallback(closeTab);
});
</script>