意见反馈
This commit is contained in:
parent
15d7cde055
commit
b3e0490b90
|
@ -90,7 +90,7 @@ function f_submit()
|
||||||
{
|
{
|
||||||
var subject = $("#memo_subject").val();
|
var subject = $("#memo_subject").val();
|
||||||
var content = $("#memo_content_1").val();
|
var content = $("#memo_content_1").val();
|
||||||
$("#memo_subject").val(subject+":"+ content.substr(0,18));
|
$("#memo_subject").val(subject+":"+ content.substr(0,18)+"...");
|
||||||
$("#new_memo").submit();
|
$("#new_memo").submit();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -137,6 +137,20 @@ function cookieget(n)
|
||||||
durationTime : 600
|
durationTime : 600
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$(document).ready(function(){
|
||||||
|
$("#memo_content_1").keydown(function(){
|
||||||
|
var curLength=$("#memo_content_1").val().length;
|
||||||
|
if(curLength>=50){
|
||||||
|
var num=$("#memo_content_1").val().substr(0,49);
|
||||||
|
$("#memo_content_1").val(num);
|
||||||
|
alert("超过意见反馈内容字数限制,多出的内容将被截断!" );
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
$("#textCount").text(49-$("#memo_content_1").val().length)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
})
|
||||||
</script>
|
</script>
|
||||||
<div class="scrollsidebar" id="scrollsidebar" style="float: right">
|
<div class="scrollsidebar" id="scrollsidebar" style="float: right">
|
||||||
<div class="side_content">
|
<div class="side_content">
|
||||||
|
@ -149,7 +163,8 @@ function cookieget(n)
|
||||||
<%= f.hidden_field :subject,:required => true , :value => l(:label_feedback_value) %>
|
<%= f.hidden_field :subject,:required => true , :value => l(:label_feedback_value) %>
|
||||||
<%= f.text_area :content,:class => "opnionText",:id=>"memo_content_1" ,:placeholder => l(:label_feedback_tips) %>
|
<%= f.text_area :content,:class => "opnionText",:id=>"memo_content_1" ,:placeholder => l(:label_feedback_tips) %>
|
||||||
<%#= f.submit :value => l(:label_memo_create), :class => "opnionButton", :id => "button1" %>
|
<%#= f.submit :value => l(:label_memo_create), :class => "opnionButton", :id => "button1" %>
|
||||||
<a href="javascript:void(0);" class="opnionButton" style=" color:#fff;" id="" onclick="f_submit();"><%= l(:label_submit)%></a>
|
<label><span id="textCount">50</span>/50</label>
|
||||||
|
<a href="javascript:void(0);" class="opnionButton" style=" color:#fff;" id="" onclick="f_submit();"><%= l(:label_submit)%></a>
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
<div class="msgserver">
|
<div class="msgserver">
|
||||||
|
|
|
@ -55,8 +55,8 @@ $(function(){
|
||||||
function f_submit()
|
function f_submit()
|
||||||
{
|
{
|
||||||
var subject = $("#memo_subject").val();
|
var subject = $("#memo_subject").val();
|
||||||
var content = $("#memo_content_1").val();
|
var content = $("#memo_content").val();
|
||||||
$("#memo_subject").val(subject+":"+ content.substr(0,18));
|
$("#memo_subject").val(subject+":"+ content.substr(0,18)+"...");
|
||||||
$("#new_memo").submit();
|
$("#new_memo").submit();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -99,13 +99,6 @@ $(function(){
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
function f_submit()
|
|
||||||
{
|
|
||||||
var subject = $("#memo_subject").val();
|
|
||||||
var content = $("#memo_content").val();
|
|
||||||
$("#memo_subject").val(subject+":"+ content.substr(0,18));
|
|
||||||
$("#new_memo").submit();
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
|
|
Loading…
Reference in New Issue