mirror of https://github.com/ColorlibHQ/AdminLTE
Fixed issue with extending $.AdminLTE.options
parent
c0280e2819
commit
d72176caa7
|
@ -138,7 +138,7 @@ $.AdminLTE.options = {
|
||||||
$(function () {
|
$(function () {
|
||||||
//Extend options if external options exist
|
//Extend options if external options exist
|
||||||
if (typeof AdminLTEOptions !== "undefined") {
|
if (typeof AdminLTEOptions !== "undefined") {
|
||||||
$.AdminLTE.options = $.extend({},
|
$.extend(true,
|
||||||
$.AdminLTE.options,
|
$.AdminLTE.options,
|
||||||
AdminLTEOptions);
|
AdminLTEOptions);
|
||||||
}
|
}
|
||||||
|
@ -476,8 +476,8 @@ function _init() {
|
||||||
if (slide) {
|
if (slide) {
|
||||||
sidebar.addClass('control-sidebar-open');
|
sidebar.addClass('control-sidebar-open');
|
||||||
$(document).on('click', function () {
|
$(document).on('click', function () {
|
||||||
_this.close(sidebar, slide);
|
_this.close(sidebar, slide);
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
//Push the content by adding the open class to the body instead
|
//Push the content by adding the open class to the body instead
|
||||||
//of the sidebar itself
|
//of the sidebar itself
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue