Skip to content

Commit

Permalink
Update templates/sns/users/index.haml
Browse files Browse the repository at this point in the history
  • Loading branch information
scapefish committed Oct 14, 2012
1 parent aae5bb3 commit fe066fb
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions templates/sns/users/index.haml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,17 @@
});
return false;
}
if (content.length > 200 ){
$(this).find(".post").tooltip({
placement: 'top',
title: "您输入的内容超过长度限制...",
trigger: "manual",
}).tooltip("show");
$(this).find(".post").unbind('click keydown').bind('click keydown', function(){
$(this).tooltip('destroy');
});
return false;
}
$(this).find(".btn-primary").addClass("disabled").html("正在发布,请稍后...");
$.post("/posts", {
"content": content,
Expand Down

0 comments on commit fe066fb

Please sign in to comment.