Update JS files

pull/1707/head
Abdullah Almsaeed 8 years ago
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"]}

@ -12,9 +12,9 @@ const Layout = (($) => {
* ====================================================
*/
const NAME = 'Layout'
const DATA_KEY = 'lte.layout'
const EVENT_KEY = `.${DATA_KEY}`
const NAME = 'Layout'
const DATA_KEY = 'lte.layout'
const EVENT_KEY = `.${DATA_KEY}`
const JQUERY_NO_CONFLICT = $.fn[NAME]
const Event = {
@ -55,13 +55,14 @@ const Layout = (($) => {
fixLayoutHeight() {
let heights = [
$(window).height(),
$(Selector.HEADER).outerHeight(),
$(Selector.FOOTER).outerHeight()
]
$(Selector.CONTENT).css('min-height', heights[0] - (heights[1] + heights[2]))
console.log(heights[0] - (heights[1] + heights[2]))
$(window).height(),
$(Selector.HEADER).outerHeight(),
$(Selector.FOOTER).outerHeight(),
$(Selector.SIDEBAR).height()
],
max = this._max(heights)
$(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(() => {
@ -115,7 +116,7 @@ const Layout = (($) => {
$.fn[NAME] = Layout._jQueryInterface
$.fn[NAME].Constructor = Layout
$.fn[NAME].noConflict = function () {
$.fn[NAME].noConflict = function () {
$.fn[NAME] = JQUERY_NO_CONFLICT
return Layout._jQueryInterface
}
@ -161,7 +162,7 @@ const Treeview = (($) => {
const Default = {
trigger: `${Selector.DATA_WIDGET} ${Selector.LINK}`,
animationSpeed: 300,
accordion: false
accordion: true
}
/**
@ -299,9 +300,9 @@ const PushMenu = (($) => {
* ====================================================
*/
const NAME = 'PushMenu'
const DATA_KEY = 'lte.pushmenu'
const EVENT_KEY = `.${DATA_KEY}`
const NAME = 'PushMenu'
const DATA_KEY = 'lte.pushmenu'
const EVENT_KEY = `.${DATA_KEY}`
const JQUERY_NO_CONFLICT = $.fn[NAME]
const Event = {
@ -330,7 +331,7 @@ const PushMenu = (($) => {
show() {
$('body').addClass('sidebar-open')
.removeClass(Selector.COLLAPSED)
.removeClass(Selector.COLLAPSED)
this._isShown = true
@ -340,7 +341,7 @@ const PushMenu = (($) => {
collapse() {
$('body').removeClass('sidebar-open')
.addClass(Selector.COLLAPSED)
.addClass(Selector.COLLAPSED)
this._isShown = false
@ -403,7 +404,7 @@ const PushMenu = (($) => {
$.fn[NAME] = PushMenu._jQueryInterface
$.fn[NAME].Constructor = PushMenu
$.fn[NAME].noConflict = function () {
$.fn[NAME].noConflict = function () {
$.fn[NAME] = JQUERY_NO_CONFLICT
return PushMenu._jQueryInterface
}

@ -13,9 +13,9 @@ const PushMenu = (($) => {
* ====================================================
*/
const NAME = 'PushMenu'
const DATA_KEY = 'lte.pushmenu'
const EVENT_KEY = `.${DATA_KEY}`
const NAME = 'PushMenu'
const DATA_KEY = 'lte.pushmenu'
const EVENT_KEY = `.${DATA_KEY}`
const JQUERY_NO_CONFLICT = $.fn[NAME]
const Event = {
@ -44,7 +44,7 @@ const PushMenu = (($) => {
show() {
$('body').addClass('sidebar-open')
.removeClass(Selector.COLLAPSED)
.removeClass(Selector.COLLAPSED)
this._isShown = true
@ -54,7 +54,7 @@ const PushMenu = (($) => {
collapse() {
$('body').removeClass('sidebar-open')
.addClass(Selector.COLLAPSED)
.addClass(Selector.COLLAPSED)
this._isShown = false
@ -117,7 +117,7 @@ const PushMenu = (($) => {
$.fn[NAME] = PushMenu._jQueryInterface
$.fn[NAME].Constructor = PushMenu
$.fn[NAME].noConflict = function () {
$.fn[NAME].noConflict = function () {
$.fn[NAME] = JQUERY_NO_CONFLICT
return PushMenu._jQueryInterface
}

@ -42,7 +42,7 @@ const Treeview = (($) => {
const Default = {
trigger: `${Selector.DATA_WIDGET} ${Selector.LINK}`,
animationSpeed: 300,
accordion: false
accordion: true
}
/**

Loading…
Cancel
Save