From b76c31914460f0bc7c0c8f136e07bf46d10c1685 Mon Sep 17 00:00:00 2001 From: Sameer Rahmani Date: Sun, 11 Oct 2015 15:40:34 +0330 Subject: [PATCH] Sidebar autoclose on turbolinks fixed. close #718 --- dist/js/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dist/js/app.js b/dist/js/app.js index 36d187005..c064a64cc 100644 --- a/dist/js/app.js +++ b/dist/js/app.js @@ -388,7 +388,7 @@ function _init() { $.AdminLTE.tree = function (menu) { var _this = this; var animationSpeed = $.AdminLTE.options.animationSpeed; - $(document).on('click', menu + ' li a', function (e) { + $(menu).on('click', 'li a', function (e) { //Get the clicked link and the next element var $this = $(this); var checkElement = $this.next();