diff --git a/app/views/profile/_profile_comment_form.html.erb b/app/views/profile/_profile_comment_form.html.erb index 50a37c2..22825b8 100644 --- a/app/views/profile/_profile_comment_form.html.erb +++ b/app/views/profile/_profile_comment_form.html.erb @@ -10,8 +10,8 @@ :rows => 1, :class => 'submit-with-keypress', :title => _('Leave your comment'), - :onfocus => ('if(this.value==this.title){this.value="";this.style.color="#000"};this.style.backgroundImage="url(' + profile_icon(current_person, :icon, false) + ')"' if logged_in?), - :onblur => ('if(this.value==""){this.value=this.title;this.style.color="#ccc"};this.style.backgroundImage="none"' if logged_in?), + :onfocus => ("if(this.value==this.title){this.value='';this.style.color='#000'};this.style.backgroundImage='url(" + profile_icon(current_person, :icon, false) + ")'" if logged_in?), + :onblur => ("if(this.value==''){this.value=this.title;this.style.color='#ccc'};this.style.backgroundImage='none'" if logged_in?), :value => _('Leave your comment'), :style => 'color: #ccc' %> <%= hidden_field_tag :source_id, activity.id, :id => "activity_id_#{activity.id}" %> diff --git a/app/views/profile/_profile_scrap_reply_form.html.erb b/app/views/profile/_profile_scrap_reply_form.html.erb index c9111c2..e42cd0f 100644 --- a/app/views/profile/_profile_scrap_reply_form.html.erb +++ b/app/views/profile/_profile_scrap_reply_form.html.erb @@ -9,9 +9,9 @@ :rows => 1, :class => 'submit-with-keypress', :title => _('Leave your comment'), - :onfocus => ('if(this.value==this.title){this.value="";this.style.color="#000"};this.style.backgroundImage="url(' + profile_icon(current_person, :icon, false) + ')"' if logged_in?), - :onblur => ('if(this.value==""){this.value=this.title;this.style.color="#ccc"};this.style.backgroundImage="none"' if logged_in?), - :value => _('Leave your comment') %> + :onfocus => ("if(this.value==this.title){this.value='';this.style.color='#000'};this.style.backgroundImage='url(" + profile_icon(current_person, :icon, false) + ")'" if logged_in?), + :onblur => ("if(this.value==''){this.value=this.title;this.style.color='#ccc'};this.style.backgroundImage='none'" if logged_in?), + :value => _('Leave your comment'), %> <%= hidden_field_tag 'scrap[scrap_id]', scrap.id %> <%= hidden_field_tag 'receiver_id', scrap.sender.id %> <% end %> -- libgit2 0.21.2