mirror of https://github.com/halo-dev/halo
parent
e059dd05e3
commit
f98ee92693
|
@ -246,7 +246,7 @@
|
||||||
*/
|
*/
|
||||||
function autoComplateUrl() {
|
function autoComplateUrl() {
|
||||||
var titleVal = $("#post_title").val();
|
var titleVal = $("#post_title").val();
|
||||||
if(titleVal!="" && titleVal!=null){
|
if(titleVal!="" && titleVal!=null && $("#postUrl").html()==''){
|
||||||
var result = $("#post_title").toPinyin().toLowerCase();
|
var result = $("#post_title").toPinyin().toLowerCase();
|
||||||
$("#postUrl").html(result.substring(0,result.length-1));
|
$("#postUrl").html(result.substring(0,result.length-1));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue