luci2.ui: hide mobile dropdown menu when changing views
authorJo-Philipp Wich <jow@openwrt.org>
Fri, 13 Feb 2015 22:36:18 +0000 (23:36 +0100)
committerJo-Philipp Wich <jow@openwrt.org>
Fri, 13 Feb 2015 22:43:08 +0000 (23:43 +0100)
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
luci2/htdocs/luci2/ui.js

index 81c52dc950e61ebc0c8bb43e8d3c73dc0cbb689d..5ab1ddd0bb630243f8204a517af9e69b795474fd 100644 (file)
                        {
                                L.ui.loading(true);
                                L.ui.renderView(node).then(function() {
+                                       $('#mainmenu.in').collapse('hide');
                                        L.ui.loading(false);
                                });
                        }