From 5fa1f51aa324e504c3c3886401046c0dfdb97a8a Mon Sep 17 00:00:00 2001 From: Argo-Lenovo Date: Sun, 1 Jan 2017 19:49:31 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=9B=BE=E6=A0=87=E4=BD=BF?= =?UTF-8?q?=E7=94=A8FA=E7=9A=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Bootstrap.Admin/Bootstrap.Admin.csproj | 1 + Bootstrap.Admin/Content/css/admin.css | 12 ++++-------- Bootstrap.Admin/Content/js/Longbow.Common.js | 3 ++- Bootstrap.Admin/Views/Admin/Dicts.cshtml | 6 ++---- Bootstrap.Admin/Views/Admin/Exceptions.cshtml | 4 ++-- Bootstrap.Admin/Views/Admin/Groups.cshtml | 6 ++---- Bootstrap.Admin/Views/Admin/Infos.cshtml | 4 ++-- Bootstrap.Admin/Views/Admin/Logs.cshtml | 2 +- Bootstrap.Admin/Views/Admin/Menus.cshtml | 6 ++---- Bootstrap.Admin/Views/Admin/Roles.cshtml | 6 ++---- Bootstrap.Admin/Views/Admin/Users.cshtml | 6 ++---- .../Views/Shared/_ButtonBarGroup.cshtml | 4 ++++ Bootstrap.Admin/Views/Shared/_Default.cshtml | 14 ++++---------- 13 files changed, 30 insertions(+), 44 deletions(-) create mode 100644 Bootstrap.Admin/Views/Shared/_ButtonBarGroup.cshtml diff --git a/Bootstrap.Admin/Bootstrap.Admin.csproj b/Bootstrap.Admin/Bootstrap.Admin.csproj index d8afaf75..7c65c081 100644 --- a/Bootstrap.Admin/Bootstrap.Admin.csproj +++ b/Bootstrap.Admin/Bootstrap.Admin.csproj @@ -326,6 +326,7 @@ + Web.config diff --git a/Bootstrap.Admin/Content/css/admin.css b/Bootstrap.Admin/Content/css/admin.css index 76718f43..247dbd60 100644 --- a/Bootstrap.Admin/Content/css/admin.css +++ b/Bootstrap.Admin/Content/css/admin.css @@ -32,14 +32,6 @@ text-align: center; } -.hidden-tb { - margin-left: 6px; -} - -.glyphicon-search { - padding-right: 6px; -} - .clearcache { position: absolute; right: 60px; @@ -88,6 +80,10 @@ outline: none !important; } + .btn span { + margin-left: 4px; + } + .modal-header { background-color: #f5f5f5; border-top-left-radius: 6px; diff --git a/Bootstrap.Admin/Content/js/Longbow.Common.js b/Bootstrap.Admin/Content/js/Longbow.Common.js index 14d26e09..b9bf72b4 100644 --- a/Bootstrap.Admin/Content/js/Longbow.Common.js +++ b/Bootstrap.Admin/Content/js/Longbow.Common.js @@ -310,10 +310,11 @@ }, options); $(this).bootstrapTable(settings); var $toolbar = $('div.toolbar'); - $('div.toolbar').on('click', 'a', function () { + $toolbar.on('click', 'a', function () { var ctl = $('#' + $(this).attr('id').replace('tb_', 'btn_')); ctl.trigger("click"); }).insertBefore($('div.bootstrap-table > div.fixed-table-toolbar > div.bs-bars')); + $(settings.toolbar).removeClass('hidden'); }, select: function () { var $this = $(this); diff --git a/Bootstrap.Admin/Views/Admin/Dicts.cshtml b/Bootstrap.Admin/Views/Admin/Dicts.cshtml index 189702da..6b4db8d2 100644 --- a/Bootstrap.Admin/Views/Admin/Dicts.cshtml +++ b/Bootstrap.Admin/Views/Admin/Dicts.cshtml @@ -41,14 +41,12 @@
- +
diff --git a/Bootstrap.Admin/Views/Admin/Exceptions.cshtml b/Bootstrap.Admin/Views/Admin/Exceptions.cshtml index 186566fd..10a83b79 100644 --- a/Bootstrap.Admin/Views/Admin/Exceptions.cshtml +++ b/Bootstrap.Admin/Views/Admin/Exceptions.cshtml @@ -45,7 +45,7 @@
- +
diff --git a/Bootstrap.Admin/Views/Admin/Groups.cshtml b/Bootstrap.Admin/Views/Admin/Groups.cshtml index 22b78c89..0a5c7939 100644 --- a/Bootstrap.Admin/Views/Admin/Groups.cshtml +++ b/Bootstrap.Admin/Views/Admin/Groups.cshtml @@ -24,14 +24,12 @@
- +
@@ -63,7 +63,7 @@ diff --git a/Bootstrap.Admin/Views/Admin/Logs.cshtml b/Bootstrap.Admin/Views/Admin/Logs.cshtml index 8d0af14c..f3c4d5ce 100644 --- a/Bootstrap.Admin/Views/Admin/Logs.cshtml +++ b/Bootstrap.Admin/Views/Admin/Logs.cshtml @@ -50,7 +50,7 @@
- +
diff --git a/Bootstrap.Admin/Views/Admin/Menus.cshtml b/Bootstrap.Admin/Views/Admin/Menus.cshtml index b5159aa0..daf57b90 100644 --- a/Bootstrap.Admin/Views/Admin/Menus.cshtml +++ b/Bootstrap.Admin/Views/Admin/Menus.cshtml @@ -46,14 +46,12 @@
- +
diff --git a/Bootstrap.Admin/Views/Admin/Roles.cshtml b/Bootstrap.Admin/Views/Admin/Roles.cshtml index d9e6e9b4..a9c700d9 100644 --- a/Bootstrap.Admin/Views/Admin/Roles.cshtml +++ b/Bootstrap.Admin/Views/Admin/Roles.cshtml @@ -30,14 +30,12 @@
- +
-
- - - +