diff --git a/dist/js/demo.js b/dist/js/demo.js index 1dc2c7043..e87303c10 100644 --- a/dist/js/demo.js +++ b/dist/js/demo.js @@ -81,7 +81,7 @@ + "
" + "
" + "" + "
" @@ -90,17 +90,26 @@ + "
" + "
" + "" + "
" + "
" - //Sidebar Collapse + //Sidebar Toggle + "
" + "
" + "" + + "
" + + "
" + //Control Sidebar Toggle + + "
" + + "
" + + "" + "
" + "
" @@ -297,5 +306,18 @@ e.preventDefault(); change_skin($(this).data('skin')); }); + + //Add the layout manager + $("[data-layout]").on('click', function () { + change_layout($(this).data('layout')); + }); + + $("[data-controlsidebar]").on('click', function () { + change_layout($(this).data('controlsidebar')); + var slide = !$.AdminLTE.options.controlSidebarOptions.slide; + $.AdminLTE.options.controlSidebarOptions.slide = slide; + if(!slide) + $('.control-sidebar').removeClass('control-sidebar-open'); + }); } -})(jQuery); +})(jQuery); \ No newline at end of file