mirror of https://github.com/ColorlibHQ/AdminLTE
Update JS files
parent
71c560ec27
commit
7041e65d3f
File diff suppressed because one or more lines are too long
|
@ -48,7 +48,7 @@ var Treeview = function ($) {
|
|||
var Default = {
|
||||
trigger: Selector.DATA_WIDGET + ' ' + Selector.LINK,
|
||||
animationSpeed: 300,
|
||||
accordion: false
|
||||
accordion: true
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1 +1 @@
|
|||
{"version":3,"sources":["../src/Widget.js"],"names":[],"mappings":";;;;;;;;;;;;;AAOA,IAAM,SAAU,UAAC,CAAD,EAAO;AACrB;;AADqB,MAGf,MAHe;AAKnB,oBAAY,OAAZ,EAAqB;AAAA;;AACnB,WAAK,QAAL,GAAgB,OAAhB;AACD;;AAPkB;AAAA;AAAA,uCASK,OATL,EASc;AAC/B,YAAI,QAAQ,EAAE,OAAF,CAAZ;AACA,cAAM,IAAN;AACD;AAZkB;;AAAA;AAAA;;AAerB,SAAO,MAAP;AAED,CAjBc,CAiBZ,MAjBY,CAAf","file":"Widget.js","sourcesContent":["/**\n * --------------------------------------------\n * AdminLTE Widget.js\n * License MIT\n * --------------------------------------------\n */\n\nconst Widget = (($) => {\n 'use strict'\n\n class Widget {\n\n constructor(element) {\n this._element = element\n }\n\n static _jQueryInterface(element) {\n let $this = $(element)\n $this.show()\n }\n }\n\n return Widget\n\n})(jQuery)\n"]}
|
||||
{"version":3,"sources":["../src/Widget.js"],"names":["Widget","$","element","_element","$this","show","jQuery"],"mappings":";;;;;;AAAA;;;;;;;AAOA,IAAMA,SAAU,UAACC,CAAD,EAAO;AACrB;;AADqB,MAGfD,MAHe;AAKnB,oBAAYE,OAAZ,EAAqB;AAAA;;AACnB,WAAKC,QAAL,GAAgBD,OAAhB;AACD;;AAPkB;AAAA;AAAA,uCASKA,OATL,EASc;AAC/B,YAAIE,QAAQH,EAAEC,OAAF,CAAZ;AACAE,cAAMC,IAAN;AACD;AAZkB;;AAAA;AAAA;;AAerB,SAAOL,MAAP;AAED,CAjBc,CAiBZM,MAjBY,CAAf","file":"Widget.js","sourcesContent":["/**\n * --------------------------------------------\n * AdminLTE Widget.js\n * License MIT\n * --------------------------------------------\n */\n\nconst Widget = (($) => {\n 'use strict'\n\n class Widget {\n\n constructor(element) {\n this._element = element\n }\n\n static _jQueryInterface(element) {\n let $this = $(element)\n $this.show()\n }\n }\n\n return Widget\n\n})(jQuery)\n"]}
|
|
@ -57,11 +57,12 @@ const Layout = (($) => {
|
|||
let heights = [
|
||||
$(window).height(),
|
||||
$(Selector.HEADER).outerHeight(),
|
||||
$(Selector.FOOTER).outerHeight()
|
||||
]
|
||||
$(Selector.FOOTER).outerHeight(),
|
||||
$(Selector.SIDEBAR).height()
|
||||
],
|
||||
max = this._max(heights)
|
||||
|
||||
$(Selector.CONTENT).css('min-height', heights[0] - (heights[1] + heights[2]))
|
||||
console.log(heights[0] - (heights[1] + heights[2]))
|
||||
$(Selector.CONTENT).css('min-height', max - (heights[1] + heights[2]))
|
||||
}
|
||||
|
||||
// Private
|
||||
|
@ -70,7 +71,7 @@ const Layout = (($) => {
|
|||
$('body').removeClass(ClassName.HOLD)
|
||||
|
||||
this.fixLayoutHeight()
|
||||
$(Selector.SIDEBAR).on('collapsed.lte.treeview expanded.lte.treeview', () => {
|
||||
$(Selector.SIDEBAR).on('collapsed.lte.treeview expanded.lte.treeview collapsed.lte.pushmenu expanded.lte.pushmenu', () => {
|
||||
this.fixLayoutHeight()
|
||||
})
|
||||
$(window).resize(() => {
|
||||
|
@ -161,7 +162,7 @@ const Treeview = (($) => {
|
|||
const Default = {
|
||||
trigger: `${Selector.DATA_WIDGET} ${Selector.LINK}`,
|
||||
animationSpeed: 300,
|
||||
accordion: false
|
||||
accordion: true
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -42,7 +42,7 @@ const Treeview = (($) => {
|
|||
const Default = {
|
||||
trigger: `${Selector.DATA_WIDGET} ${Selector.LINK}`,
|
||||
animationSpeed: 300,
|
||||
accordion: false
|
||||
accordion: true
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue