提交 fe3af686 编写于 作者: L Luke Childs

Attach push menu event listener to document

上级 ef8624bf
......@@ -314,7 +314,7 @@ function _init() {
var screenSizes = $.AdminLTE.options.screenSizes;
//Enable sidebar toggle
$(toggleBtn).on('click', function (e) {
$(document).on('click', toggleBtn, function (e) {
e.preventDefault();
//Enable sidebar push menu
......@@ -690,12 +690,12 @@ function _init() {
$.fn.activateBox = function () {
$.AdminLTE.boxWidget.activate(this);
};
$.fn.toggleBox = function(){
var button = $($.AdminLTE.boxWidget.selectors.collapse, this);
$.AdminLTE.boxWidget.collapse(button);
};
$.fn.removeBox = function(){
var button = $($.AdminLTE.boxWidget.selectors.remove, this);
$.AdminLTE.boxWidget.remove(button);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册