|
|
@ -279,7 +279,7 @@ function _init() {
|
|
|
|
//Enable slimscroll for fixed layout
|
|
|
|
//Enable slimscroll for fixed layout
|
|
|
|
if ($.AdminLTE.options.sidebarSlimScroll) {
|
|
|
|
if ($.AdminLTE.options.sidebarSlimScroll) {
|
|
|
|
if (typeof $.fn.slimScroll != 'undefined') {
|
|
|
|
if (typeof $.fn.slimScroll != 'undefined') {
|
|
|
|
//Distroy if it exists
|
|
|
|
//Destroy if it exists
|
|
|
|
$(".sidebar").slimScroll({destroy: true}).height("auto");
|
|
|
|
$(".sidebar").slimScroll({destroy: true}).height("auto");
|
|
|
|
//Add slimscroll
|
|
|
|
//Add slimscroll
|
|
|
|
$(".sidebar").slimscroll({
|
|
|
|
$(".sidebar").slimscroll({
|
|
|
@ -460,7 +460,7 @@ function _init() {
|
|
|
|
if ($('body').hasClass('fixed')) {
|
|
|
|
if ($('body').hasClass('fixed')) {
|
|
|
|
_this._fixForFixed(sidebar);
|
|
|
|
_this._fixForFixed(sidebar);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
//If the content height is less the sidebar's height, force max height
|
|
|
|
//If the content height is less than the sidebar's height, force max height
|
|
|
|
if ($('.content-wrapper, .right-side').height() < sidebar.height()) {
|
|
|
|
if ($('.content-wrapper, .right-side').height() < sidebar.height()) {
|
|
|
|
_this._fixForContent(sidebar);
|
|
|
|
_this._fixForContent(sidebar);
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -519,12 +519,12 @@ function _init() {
|
|
|
|
|
|
|
|
|
|
|
|
/* BoxWidget
|
|
|
|
/* BoxWidget
|
|
|
|
* =========
|
|
|
|
* =========
|
|
|
|
* BoxWidget is plugin to handle collapsing and
|
|
|
|
* BoxWidget is a plugin to handle collapsing and
|
|
|
|
* removing boxes from the screen.
|
|
|
|
* removing boxes from the screen.
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* @type Object
|
|
|
|
* @type Object
|
|
|
|
* @usage $.AdminLTE.boxWidget.activate()
|
|
|
|
* @usage $.AdminLTE.boxWidget.activate()
|
|
|
|
* Set all of your option in the main $.AdminLTE.options object
|
|
|
|
* Set all your options in the main $.AdminLTE.options object
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
$.AdminLTE.boxWidget = {
|
|
|
|
$.AdminLTE.boxWidget = {
|
|
|
|
selectors: $.AdminLTE.options.boxWidgetOptions.boxWidgetSelectors,
|
|
|
|
selectors: $.AdminLTE.options.boxWidgetOptions.boxWidgetSelectors,
|
|
|
@ -586,7 +586,7 @@ function _init() {
|
|
|
|
/*
|
|
|
|
/*
|
|
|
|
* BOX REFRESH BUTTON
|
|
|
|
* BOX REFRESH BUTTON
|
|
|
|
* ------------------
|
|
|
|
* ------------------
|
|
|
|
* This is a custom plugin to use with the compenet BOX. It allows you to add
|
|
|
|
* This is a custom plugin to use with the component BOX. It allows you to add
|
|
|
|
* a refresh button to the box. It converts the box's state to a loading state.
|
|
|
|
* a refresh button to the box. It converts the box's state to a loading state.
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* @type plugin
|
|
|
|
* @type plugin
|
|
|
@ -598,7 +598,7 @@ function _init() {
|
|
|
|
|
|
|
|
|
|
|
|
// Render options
|
|
|
|
// Render options
|
|
|
|
var settings = $.extend({
|
|
|
|
var settings = $.extend({
|
|
|
|
//Refressh button selector
|
|
|
|
//Refresh button selector
|
|
|
|
trigger: ".refresh-btn",
|
|
|
|
trigger: ".refresh-btn",
|
|
|
|
//File source to be loaded (e.g: ajax/src.php)
|
|
|
|
//File source to be loaded (e.g: ajax/src.php)
|
|
|
|
source: "",
|
|
|
|
source: "",
|
|
|
|