moving javascript hax
This commit is contained in:
parent
870ad3d9f7
commit
f506a8778c
2 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue