编辑贴吧描述权限问题

This commit is contained in:
lizanle 2015-09-19 10:25:02 +08:00
parent 72ae07fcb1
commit fa41c03a82
1 changed files with 5 additions and 3 deletions

View File

@ -19,10 +19,12 @@
<script>
var desc;
function edit_desc(){
if(<%=@forum.creator.id == User.current.id%>) {
desc = $("#forum_desc_span").html();
$("#forum_desc_span").html("<textarea id='forum_desc_input' onblur='change_forum_desc();' class='homepageSignatureTextarea'>"+desc+"</textarea>");
$("#forum_desc_span").html("<textarea id='forum_desc_input' onblur='change_forum_desc();' class='homepageSignatureTextarea'>" + desc + "</textarea>");
$("#forum_desc_input").focus();
}
}
function change_forum_desc(){
$.ajax({