个人主页--留言文本框修改
This commit is contained in:
parent
74c50e155a
commit
1b3c6bde69
|
@ -32,7 +32,7 @@
|
||||||
<div class="message_box mb10">
|
<div class="message_box mb10">
|
||||||
<div nhname='new_message' style="display:none;">
|
<div nhname='new_message' style="display:none;">
|
||||||
<form action="<%= url_for(:controller => 'words', :action => 'create', :user_id => @user.id) %>" data-remote="true" method="post">
|
<form action="<%= url_for(:controller => 'words', :action => 'create', :user_id => @user.id) %>" data-remote="true" method="post">
|
||||||
<textarea nhname='new_message_textarea' name="new_form[user_message]"></textarea>
|
<textarea placeholder="有问题或有建议,请直接给我留言吧!" nhname='new_message_textarea' name="new_form[user_message]"></textarea>
|
||||||
<p nhname='contentmsg'></p>
|
<p nhname='contentmsg'></p>
|
||||||
<div nhname='toolbar_container' style="float:left;padding-top:3px;"></div>
|
<div nhname='toolbar_container' style="float:left;padding-top:3px;"></div>
|
||||||
<a id="new_message_cancel_btn" href="javascript:void(0)" class="grey_n_btn fr " style="margin-top:3px;">取消</a>
|
<a id="new_message_cancel_btn" href="javascript:void(0)" class="grey_n_btn fr " style="margin-top:3px;">取消</a>
|
||||||
|
@ -119,9 +119,8 @@
|
||||||
$(function(){
|
$(function(){
|
||||||
|
|
||||||
function init_editor(params){
|
function init_editor(params){
|
||||||
params.textarea.removeAttr('placeholder');
|
|
||||||
var editor = params.kindutil.create(params.textarea, {
|
var editor = params.kindutil.create(params.textarea, {
|
||||||
resizeType : 1,minWidth:"1px",width:"100%",height:"150px",
|
resizeType : 1,minWidth:"1px",width:"100%",height:"80px",
|
||||||
items:['emoticons'],
|
items:['emoticons'],
|
||||||
afterChange:function(){//按键事件
|
afterChange:function(){//按键事件
|
||||||
nh_check_field({content:this,contentmsg:params.contentmsg,textarea:params.textarea});
|
nh_check_field({content:this,contentmsg:params.contentmsg,textarea:params.textarea});
|
||||||
|
|
Loading…
Reference in New Issue