From f98ee9269348a4fbb02a403f8e09792ecd1e6236 Mon Sep 17 00:00:00 2001 From: ruibaby Date: Tue, 29 May 2018 17:08:00 +0800 Subject: [PATCH] =?UTF-8?q?:alien:=20=E4=BF=AE=E6=94=B9=E7=BC=96=E8=BE=91?= =?UTF-8?q?=E6=96=87=E7=AB=A0=E6=97=B6=E8=87=AA=E5=8A=A8=E5=A1=AB=E5=85=85?= =?UTF-8?q?=E5=9B=BA=E5=AE=9A=E8=B7=AF=E5=BE=84=E7=9A=84=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 仅当第一次输入标题且当路径为空的时候自动填充 --- src/main/resources/templates/admin/admin_post_md_editor.ftl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/resources/templates/admin/admin_post_md_editor.ftl b/src/main/resources/templates/admin/admin_post_md_editor.ftl index bb640c134..86d367411 100755 --- a/src/main/resources/templates/admin/admin_post_md_editor.ftl +++ b/src/main/resources/templates/admin/admin_post_md_editor.ftl @@ -246,7 +246,7 @@ */ function autoComplateUrl() { var titleVal = $("#post_title").val(); - if(titleVal!="" && titleVal!=null){ + if(titleVal!="" && titleVal!=null && $("#postUrl").html()==''){ var result = $("#post_title").toPinyin().toLowerCase(); $("#postUrl").html(result.substring(0,result.length-1)); }