Permalink
Browse files

Merge

  • Loading branch information...
davidsun committed Oct 14, 2012
2 parents 21de6eb + fe066fb commit ce8abaf4dac43c953cfb35f703dded8bb9ce3bc9
Showing with 11 additions and 0 deletions.
  1. +11 −0 templates/sns/users/index.haml
@@ -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,

0 comments on commit ce8abaf

Please sign in to comment.