mirror of https://github.com/ColorlibHQ/AdminLTE
Merge pull request #699 from lukechilds/master
Attach push menu event listener to documentpull/712/head
commit
9505f59ac6
|
@ -314,7 +314,7 @@ function _init() {
|
||||||
var screenSizes = $.AdminLTE.options.screenSizes;
|
var screenSizes = $.AdminLTE.options.screenSizes;
|
||||||
|
|
||||||
//Enable sidebar toggle
|
//Enable sidebar toggle
|
||||||
$(toggleBtn).on('click', function (e) {
|
$(document).on('click', toggleBtn, function (e) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
|
||||||
//Enable sidebar push menu
|
//Enable sidebar push menu
|
||||||
|
@ -690,12 +690,12 @@ function _init() {
|
||||||
$.fn.activateBox = function () {
|
$.fn.activateBox = function () {
|
||||||
$.AdminLTE.boxWidget.activate(this);
|
$.AdminLTE.boxWidget.activate(this);
|
||||||
};
|
};
|
||||||
|
|
||||||
$.fn.toggleBox = function(){
|
$.fn.toggleBox = function(){
|
||||||
var button = $($.AdminLTE.boxWidget.selectors.collapse, this);
|
var button = $($.AdminLTE.boxWidget.selectors.collapse, this);
|
||||||
$.AdminLTE.boxWidget.collapse(button);
|
$.AdminLTE.boxWidget.collapse(button);
|
||||||
};
|
};
|
||||||
|
|
||||||
$.fn.removeBox = function(){
|
$.fn.removeBox = function(){
|
||||||
var button = $($.AdminLTE.boxWidget.selectors.remove, this);
|
var button = $($.AdminLTE.boxWidget.selectors.remove, this);
|
||||||
$.AdminLTE.boxWidget.remove(button);
|
$.AdminLTE.boxWidget.remove(button);
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue