This commit is contained in:
yutao 2015-06-16 12:01:06 +08:00
parent e5774f5731
commit 6cfc5d6a5d
3 changed files with 15 additions and 17 deletions

View File

@ -39,7 +39,7 @@
<label class="fl ml3" ><span class="c_red">*</span>&nbsp;<%= l(:field_description) %>&nbsp;</label>
<% end %>
<%= text_area :quote,:quote,:style => 'display:none',:nhname=>"quote_input" %>
<div class="content">
<div class="content <%= replying ? '':'ml55' %>">
<% if replying%>
<%= f.text_area :content,

View File

@ -1,13 +1,13 @@
<style>
.comment{
position: relative;
width: 330px;
padding: 10px;
}
.comment .ke-toolbar{
position: absolute;
bottom: -18px;
}
/*.comment{*/
/*position: relative;*/
/*width: 330px;*/
/*padding: 10px;*/
/*}*/
/*.comment .ke-toolbar{*/
/*position: absolute;*/
/*bottom: -18px;*/
/*}*/
</style>
<%= error_messages_for 'message' %>

View File

@ -1,5 +1,5 @@
<style type="text/css">
/*div.talk_new .ke-container{margin-left:2px;}*/
div.talk_new .ke-container{margin-left:2px;}
/*div.ke-toolbar{display:none;width:400px;border:none;background:none;padding:0px 0px;}
span.ke-toolbar-icon{line-height:26px;font-size:14px;padding-left:26px;}
span.ke-toolbar-icon-url{background-image:url( /images/public_icon.png )}
@ -135,12 +135,10 @@ function nh_init_board(params){
nh_check_field({content:this,contentmsg:params.contentmsg,textarea:params.textarea});
},
afterCreate:function(){
//var userAgent = navigator.userAgent.toLowerCase();
//if(/trident/.test(userAgent)){
//$("div.talk_new .ke-container").css({'margin-left':'55px'});
//}else if(/chrome/.test(userAgent)){
//$("div.talk_new .ke-container").css({'margin-left':'57px'});
//}
var userAgent = navigator.userAgent.toLowerCase();
if(/trident/.test(userAgent)){
$("div.talk_new .ke-container").css({'margin-left':'0px'});
}
// var toolbar = $("div[class='ke-toolbar']",params.about_talk);
// $(".ke-outline>.ke-toolbar-icon",toolbar).append('表情');
// params.toolbar_container.append(toolbar);