* default block name when add block.

This commit is contained in:
wangyidong
2016-05-11 09:26:03 +08:00
parent ae532c0134
commit df55e68c97
4 changed files with 10 additions and 2 deletions
+1 -1
View File
@@ -62,7 +62,7 @@ $themeRoot = $webRoot . "theme/";
$(function()
{
options = $('#moduleBlock').find("option").text();
if(options.indexOf($('#title').val()) >= 0) $('#title').val($('#moduleBlock').find("option:selected").text());
if($('#title').val() == '') $('#title').val($('#moduleBlock').find("option:selected").text());
})
</script>
<?php endif;?>