diff --git a/Bootstrap.Admin/Content/js/Longbow.Common.js b/Bootstrap.Admin/Content/js/Longbow.Common.js index 0e3b8410..8cbc6604 100644 --- a/Bootstrap.Admin/Content/js/Longbow.Common.js +++ b/Bootstrap.Admin/Content/js/Longbow.Common.js @@ -187,4 +187,10 @@ $(function () { scrollTop: 0 }, 200); }); + + $('.form-group .btn-group .dropdown-menu a').on('click', function () { + var parent = $(this).parents('div.btn-group'); + parent.children('input.hide').val($(this).attr("data-val")); + parent.children('button:first').text($(this).text()); + }); }); \ No newline at end of file diff --git a/Bootstrap.Admin/Views/Admin/Menus.cshtml b/Bootstrap.Admin/Views/Admin/Menus.cshtml index 32c14bb2..ce0a961f 100644 --- a/Bootstrap.Admin/Views/Admin/Menus.cshtml +++ b/Bootstrap.Admin/Views/Admin/Menus.cshtml @@ -77,7 +77,19 @@