diff --git a/app/views/layouts/_base_feedback.html.erb b/app/views/layouts/_base_feedback.html.erb
index 8e850b7ed..beaf8d821 100644
--- a/app/views/layouts/_base_feedback.html.erb
+++ b/app/views/layouts/_base_feedback.html.erb
@@ -141,18 +141,18 @@ function cookieget(n)
$(document).ready(function(){
$("#subject").keydown(function(){
var curLength=$("#subject").val().length;
- if(curLength>=50){
- var num=$("#subject").val().substr(0,49);
+ if(curLength>50){
+ var num=$("#subject").val().substr(0,50);
$("#subject").val(num);
}
else{
- $("#textCount").text(49-$("#subject").val().length)
+ $("#textCount").text(50-$("#subject").val().length)
}
})
$("#subject").keyup(function(){
var curLength=$("#subject").val().length;
- if(curLength>=50){
- var num=$("#subject").val().substr(0,49);
+ if(curLength>50){
+ var num=$("#subject").val().substr(0,50);
$("#subject").val(num);
}
else{
diff --git a/public/javascripts/feedback.js b/public/javascripts/feedback.js
index 6ba244d6d..1bbab1f45 100644
--- a/public/javascripts/feedback.js
+++ b/public/javascripts/feedback.js
@@ -116,12 +116,22 @@ $(document).ready(function () {
$(document).ready(function(){
$("#subject").keydown(function(){
var curLength=$("#subject").val().length;
- if(curLength>=50){
- var num=$("#subject").val().substr(0,49);
+ if(curLength>50){
+ var num=$("#subject").val().substr(0,50);
$("#subject").val(num);
}
else{
- $("#textCount").text(50-$("#subject").val().length);
+ $("#textCount").text(50-$("#subject").val().length)
+ }
+ })
+ $("#subject").keyup(function(){
+ var curLength=$("#subject").val().length;
+ if(curLength>50){
+ var num=$("#subject").val().substr(0,50);
+ $("#subject").val(num);
+ }
+ else{
+ $("#textCount").text(50-$("#subject").val().length)
}
})
})
\ No newline at end of file