You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
/*!
* Admin Util for XXL-BOOT
* ================
*
* 1、openTab: 打开新页面, 兼容iframe和window.open
*
* @author xuxueli
* @repository https://github.com/xuxueli/xxl-boot
*/
$ ( function ( ) {
// ---------------------- openTab ----------------------
/**
* 打开新页面, 兼容iframe和window.open
*
* @param tabSrc tab访问地址
* @param tabName tab展示名称
* @param isCloseCurrent 是否关闭当前页
*/
window . openTab = function ( tabSrc , tabName , isCloseCurrent ) {
// open tab
if ( window . parent . $ . adminTab ) {
window . parent . $ . adminTab . openTab ( {
tabSrc : tabSrc ,
tabName : tabName
} , isCloseCurrent )
} else {
if ( isCloseCurrent ) {
window . open ( tabSrc , ' _self ' ) ;
} else {
window . open ( tabSrc , ' _blank ' ) ;
}
}
}
} ) ;