diff --git a/app/views/people/show.html.haml b/app/views/people/show.html.haml index 2184906c0..303337bc9 100644 --- a/app/views/people/show.html.haml +++ b/app/views/people/show.html.haml @@ -5,6 +5,8 @@ - content_for :head do = include_javascripts :people + :javascript + Mentions.options.prefillMention = #{@person.to_json}; - content_for :page_title do = @person.name diff --git a/app/views/status_messages/new.html.haml b/app/views/status_messages/new.html.haml index ba0cfb603..e1cc91f31 100644 --- a/app/views/status_messages/new.html.haml +++ b/app/views/status_messages/new.html.haml @@ -4,9 +4,7 @@ = javascript_include_tag "publisher.js" :javascript - Mentions.options.prefillMention = #{@person.to_json}; - - $(function() { + $(function() { $("#publisher").bind('ajax:success', function(){ location.reload(); }); Publisher.bookmarklet = true; });