mirror of https://github.com/ColorlibHQ/AdminLTE
Format dist/*.js files
parent
3f81b24501
commit
5befe56edc
|
@ -41,7 +41,7 @@ $.AdminLTE.options = {
|
||||||
navbarMenuSlimscroll: true,
|
navbarMenuSlimscroll: true,
|
||||||
navbarMenuSlimscrollWidth: "3px", //The width of the scroll bar
|
navbarMenuSlimscrollWidth: "3px", //The width of the scroll bar
|
||||||
navbarMenuHeight: "200px", //The height of the inner menu
|
navbarMenuHeight: "200px", //The height of the inner menu
|
||||||
//General animation speed for JS animated elements such as box collapse/expand and
|
//General animation speed for JS animated elements such as box collapse/expand and
|
||||||
//sidebar treeview slide up/down. This options accepts an integer as milliseconds,
|
//sidebar treeview slide up/down. This options accepts an integer as milliseconds,
|
||||||
//'fast', 'normal', or 'slow'
|
//'fast', 'normal', or 'slow'
|
||||||
animationSpeed: 500,
|
animationSpeed: 500,
|
||||||
|
@ -464,7 +464,7 @@ function _init() {
|
||||||
var bg = $(".control-sidebar-bg");
|
var bg = $(".control-sidebar-bg");
|
||||||
_this._fix(bg);
|
_this._fix(bg);
|
||||||
|
|
||||||
//If the body has a fixed layout, make the control sidebar fixed
|
//If the body has a fixed layout, make the control sidebar fixed
|
||||||
if ($('body').hasClass('fixed')) {
|
if ($('body').hasClass('fixed')) {
|
||||||
_this._fixForFixed(sidebar);
|
_this._fixForFixed(sidebar);
|
||||||
} else {
|
} else {
|
||||||
|
@ -481,7 +481,7 @@ function _init() {
|
||||||
if (slide) {
|
if (slide) {
|
||||||
sidebar.addClass('control-sidebar-open');
|
sidebar.addClass('control-sidebar-open');
|
||||||
} 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
|
||||||
$('body').addClass('control-sidebar-open');
|
$('body').addClass('control-sidebar-open');
|
||||||
}
|
}
|
||||||
|
@ -534,7 +534,7 @@ function _init() {
|
||||||
$.AdminLTE.boxWidget = {
|
$.AdminLTE.boxWidget = {
|
||||||
selectors: $.AdminLTE.options.boxWidgetOptions.boxWidgetSelectors,
|
selectors: $.AdminLTE.options.boxWidgetOptions.boxWidgetSelectors,
|
||||||
icons: $.AdminLTE.options.boxWidgetOptions.boxWidgetIcons,
|
icons: $.AdminLTE.options.boxWidgetOptions.boxWidgetIcons,
|
||||||
animationSpeed: $.AdminLTE.options.animationSpeed,
|
animationSpeed: $.AdminLTE.options.animationSpeed,
|
||||||
activate: function (_box) {
|
activate: function (_box) {
|
||||||
var _this = this;
|
var _this = this;
|
||||||
if (! _box) {
|
if (! _box) {
|
||||||
|
@ -578,7 +578,7 @@ function _init() {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
remove: function (element) {
|
remove: function (element) {
|
||||||
//Find the box parent
|
//Find the box parent
|
||||||
var box = element.parents(".box").first();
|
var box = element.parents(".box").first();
|
||||||
box.slideUp(this.animationSpeed);
|
box.slideUp(this.animationSpeed);
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -8,7 +8,7 @@
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* List of all the available skins
|
* List of all the available skins
|
||||||
*
|
*
|
||||||
* @type Array
|
* @type Array
|
||||||
*/
|
*/
|
||||||
var my_skins = [
|
var my_skins = [
|
||||||
|
@ -212,7 +212,7 @@
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Toggles layout classes
|
* Toggles layout classes
|
||||||
*
|
*
|
||||||
* @param String cls the layout class to toggle
|
* @param String cls the layout class to toggle
|
||||||
* @returns void
|
* @returns void
|
||||||
*/
|
*/
|
||||||
|
@ -246,7 +246,7 @@
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Store a new settings in the browser
|
* Store a new settings in the browser
|
||||||
*
|
*
|
||||||
* @param String name Name of the setting
|
* @param String name Name of the setting
|
||||||
* @param String val Value of the setting
|
* @param String val Value of the setting
|
||||||
* @returns void
|
* @returns void
|
||||||
|
@ -261,7 +261,7 @@
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get a prestored setting
|
* Get a prestored setting
|
||||||
*
|
*
|
||||||
* @param String name Name of of the setting
|
* @param String name Name of of the setting
|
||||||
* @returns String The value of the setting | null
|
* @returns String The value of the setting | null
|
||||||
*/
|
*/
|
||||||
|
@ -275,7 +275,7 @@
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Retrieve default settings and apply them to the template
|
* Retrieve default settings and apply them to the template
|
||||||
*
|
*
|
||||||
* @returns void
|
* @returns void
|
||||||
*/
|
*/
|
||||||
function setup() {
|
function setup() {
|
||||||
|
@ -312,14 +312,14 @@
|
||||||
sidebar.addClass("control-sidebar-dark")
|
sidebar.addClass("control-sidebar-dark")
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
$("[data-enable='expandOnHover']").on('click', function () {
|
$("[data-enable='expandOnHover']").on('click', function () {
|
||||||
$(this).attr('disabled', true);
|
$(this).attr('disabled', true);
|
||||||
AdminLTE.pushMenu.expandOnHover();
|
AdminLTE.pushMenu.expandOnHover();
|
||||||
if(!$('body').hasClass('sidebar-collapse'))
|
if(!$('body').hasClass('sidebar-collapse'))
|
||||||
$("[data-layout='sidebar-collapse']").click();
|
$("[data-layout='sidebar-collapse']").click();
|
||||||
});
|
});
|
||||||
|
|
||||||
// Reset options
|
// Reset options
|
||||||
if($('body').hasClass('fixed')) {
|
if($('body').hasClass('fixed')) {
|
||||||
$("[data-layout='fixed']").attr('checked', 'checked');
|
$("[data-layout='fixed']").attr('checked', 'checked');
|
||||||
|
@ -330,6 +330,6 @@
|
||||||
if($('body').hasClass('sidebar-collapse')) {
|
if($('body').hasClass('sidebar-collapse')) {
|
||||||
$("[data-layout='sidebar-collapse']").attr('checked', 'checked');
|
$("[data-layout='sidebar-collapse']").attr('checked', 'checked');
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
})(jQuery, $.AdminLTE);
|
})(jQuery, $.AdminLTE);
|
||||||
|
|
|
@ -17,7 +17,7 @@ $(function () {
|
||||||
zIndex: 999999
|
zIndex: 999999
|
||||||
});
|
});
|
||||||
$(".connectedSortable .box-header, .connectedSortable .nav-tabs-custom").css("cursor", "move");
|
$(".connectedSortable .box-header, .connectedSortable .nav-tabs-custom").css("cursor", "move");
|
||||||
|
|
||||||
//jQuery UI sortable for the todo list
|
//jQuery UI sortable for the todo list
|
||||||
$(".todo-list").sortable({
|
$(".todo-list").sortable({
|
||||||
placeholder: "sort-highlight",
|
placeholder: "sort-highlight",
|
||||||
|
@ -231,4 +231,4 @@ $(function () {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
|
@ -158,7 +158,7 @@ $(function () {
|
||||||
tooltipTemplate: "<%=value %> <%=label%> users"
|
tooltipTemplate: "<%=value %> <%=label%> users"
|
||||||
};
|
};
|
||||||
//Create pie or douhnut chart
|
//Create pie or douhnut chart
|
||||||
// You can switch between pie and douhnut using the method below.
|
// You can switch between pie and douhnut using the method below.
|
||||||
pieChart.Doughnut(PieData, pieOptions);
|
pieChart.Doughnut(PieData, pieOptions);
|
||||||
//-----------------
|
//-----------------
|
||||||
//- END PIE CHART -
|
//- END PIE CHART -
|
||||||
|
@ -271,4 +271,4 @@ $(function () {
|
||||||
spotColor: $this.data('spotcolor')
|
spotColor: $this.data('spotcolor')
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue