From 012bd37fa22ff01106ddf0acd0988dafa649ffd2 Mon Sep 17 00:00:00 2001 From: ruibaby Date: Thu, 4 Oct 2018 00:54:30 +0800 Subject: [PATCH] =?UTF-8?q?:bug:=20=E4=BF=AE=E6=AD=A3=E9=94=99=E8=AF=AF?= =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../resources/templates/admin/admin_post.ftl | 56 ++----------------- 1 file changed, 5 insertions(+), 51 deletions(-) diff --git a/src/main/resources/templates/admin/admin_post.ftl b/src/main/resources/templates/admin/admin_post.ftl index 15612bcec..e3a7ec0a1 100755 --- a/src/main/resources/templates/admin/admin_post.ftl +++ b/src/main/resources/templates/admin/admin_post.ftl @@ -1,6 +1,6 @@ <#compress > -<#include "module/_macro.ftl"> -<@head>${options.blog_title} | <@spring.message code='admin.posts.title' /> + <#include "module/_macro.ftl"> + <@head>${options.blog_title} | <@spring.message code='admin.posts.title' />
<#include "module/_header.ftl"> @@ -11,7 +11,6 @@ .draft,.publish,.trash{list-style:none;float:left;margin:0;padding-bottom:10px} #btnNewPost{margin-left:4px;padding:3px 6px;position:relative;top:-4px;border:1px solid #ccc;border-radius:2px;background:#fff;text-shadow:none;font-weight:600;font-size:12px;line-height:normal;color:#3c8dbc;cursor:pointer;transition:all .2s ease-in-out} #btnNewPost:hover{background:#3c8dbc;color:#fff} - .pretty{margin: 0;}

<@spring.message code='admin.posts.title' />

@@ -21,8 +20,7 @@
-
-
- -
- - -
-
-
- - -
-
- @@ -81,14 +60,6 @@ <#if posts.content?size gt 0> <#list posts.content as post> - <#if post.postTitle?length gt 20> <#else > @@ -140,7 +111,7 @@ - <#else> + <#else> @@ -192,26 +163,9 @@ var url=$.trim($("#url").val()); window.location.href=url; } - function selectAll() { - if ($("input[name='ck']").prop("checked")) { - $("input[type='checkbox'][name='cks']").prop("checked",true);//全选 - } else { - $("input[type='checkbox'][name='cks']").prop("checked",false); //取消全选 - } - } - function setSelectAll(){ - if (!$("#checkAll").checked) { - $("#checkAll").prop("checked", false); - } - var chsub = $("input[type='checkbox'][name='cks']").length; - var checkedsub = $("input[type='checkbox'][name='cks']:checked").length; - if (checkedsub == chsub) { - $("#checkAll").prop("checked", true); - } - } <#include "module/_footer.ftl"> -<@footer> + <@footer>
-
- -
-
-
<@spring.message code='common.th.title' /> <@spring.message code='common.th.categories' /> <@spring.message code='common.th.tags' />
-
- -
- -
-
-
${post.postTitle?substring(0,20)}...
<@spring.message code='common.text.no-data' />