From d6bad30cbf0199102fc358fe4f3347de5bdeb36e Mon Sep 17 00:00:00 2001 From: Argo-Lenovo Date: Thu, 10 Nov 2016 01:27:58 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E7=BD=91=E7=AB=99Title/Foote?= =?UTF-8?q?r=E7=A9=BA=E5=AD=97=E7=AC=A6=E4=B8=B2=E4=BF=9D=E6=8A=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Bootstrap.Admin/Scripts/Groups.js | 1 - Bootstrap.Admin/Scripts/Profiles.js | 8 ++++++++ Bootstrap.Admin/Views/Admin/Profiles.cshtml | 6 ++++-- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/Bootstrap.Admin/Scripts/Groups.js b/Bootstrap.Admin/Scripts/Groups.js index cfcbd615..bd8d7632 100644 --- a/Bootstrap.Admin/Scripts/Groups.js +++ b/Bootstrap.Admin/Scripts/Groups.js @@ -49,7 +49,6 @@ } }); - $('table').smartTable({ url: '../api/Groups', //请求后台的URL(*) sortName: 'GroupName', diff --git a/Bootstrap.Admin/Scripts/Profiles.js b/Bootstrap.Admin/Scripts/Profiles.js index 9b3dad7a..2400d897 100644 --- a/Bootstrap.Admin/Scripts/Profiles.js +++ b/Bootstrap.Admin/Scripts/Profiles.js @@ -14,11 +14,19 @@ assign: [{ id: 'sysSave', click: function (row, data) { + if (data.Title == "") { + swal("请输入网站标题内容", "保存操作", "error"); + return; + } Profiles.saveWebSite({ name: '网站标题', code: data.Title, category: '网站设置' }); } }, { id: 'footSave', click: function (row, data) { + if (data.Title == "") { + swal("请输入网站页脚内容", "保存操作", "error"); + return; + } Profiles.saveWebSite({ name: '网站页脚', code: data.Footer, category: '网站设置' }); } }] diff --git a/Bootstrap.Admin/Views/Admin/Profiles.cshtml b/Bootstrap.Admin/Views/Admin/Profiles.cshtml index e1987896..47968681 100644 --- a/Bootstrap.Admin/Views/Admin/Profiles.cshtml +++ b/Bootstrap.Admin/Views/Admin/Profiles.cshtml @@ -6,6 +6,8 @@ @section Javascript { + + } @section css { @@ -22,7 +24,7 @@
系统名称设置
- + @@ -33,7 +35,7 @@
页脚设置
- +