mirror of https://github.com/ColorlibHQ/AdminLTE
add usage for useNavbarItems
parent
94867cd6b5
commit
39f9e9e8a8
|
@ -188,16 +188,25 @@ class IFrame {
|
||||||
this._fixHeight()
|
this._fixHeight()
|
||||||
}, 1)
|
}, 1)
|
||||||
})
|
})
|
||||||
$(document).on('click', `${SELECTOR_SIDEBAR_MENU_ITEM}, ${SELECTOR_HEADER_MENU_ITEM}, ${SELECTOR_HEADER_DROPDOWN_ITEM}`, e => {
|
$(document).on('click', SELECTOR_SIDEBAR_MENU_ITEM, e => {
|
||||||
e.preventDefault()
|
e.preventDefault()
|
||||||
this.onTabClick(e.target)
|
this.onTabClick(e.target)
|
||||||
this.openTabSidebar(e.target)
|
this.openTabSidebar(e.target)
|
||||||
})
|
})
|
||||||
$(document).on('click', SELECTOR_TAB_NAVBAR_NAV_ITEM, e => {
|
|
||||||
e.preventDefault()
|
if (this._config.useNavbarItems) {
|
||||||
this.onTabClick(e.target)
|
$(document).on('click', `${SELECTOR_HEADER_MENU_ITEM}, ${SELECTOR_HEADER_DROPDOWN_ITEM}`, e => {
|
||||||
this.switchTab(e.target)
|
e.preventDefault()
|
||||||
})
|
this.onTabClick(e.target)
|
||||||
|
this.openTabSidebar(e.target)
|
||||||
|
})
|
||||||
|
$(document).on('click', SELECTOR_TAB_NAVBAR_NAV_ITEM, e => {
|
||||||
|
e.preventDefault()
|
||||||
|
this.onTabClick(e.target)
|
||||||
|
this.switchTab(e.target)
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
$(document).on('click', SELECTOR_DATA_TOGGLE_CLOSE, e => {
|
$(document).on('click', SELECTOR_DATA_TOGGLE_CLOSE, e => {
|
||||||
e.preventDefault()
|
e.preventDefault()
|
||||||
this.removeActiveTab()
|
this.removeActiveTab()
|
||||||
|
|
Loading…
Reference in New Issue