25 lines
938 B
Text
25 lines
938 B
Text
-# Copyright (c) 2010, Diaspora Inc. This file is
|
|
-# licensed under the Affero General Public License version 3 or later. See
|
|
-# the COPYRIGHT file.
|
|
|
|
|
|
= javascript_include_tag "publisher.js"
|
|
|
|
:javascript
|
|
$(document).ready(function()
|
|
{
|
|
var person = {name: '#{@person.name}', handle: '#{@person.diaspora_handle}' };
|
|
Publisher.autocompletion.onSelect($("#status_message_fake_text"),person,'#{@person.name}');
|
|
$("#publisher #status_message_fake_text").val(function(index, value){ return value + " " });
|
|
$("#publisher").bind('ajax:success', function(){location.reload();});
|
|
Publisher.open();
|
|
});
|
|
|
|
#new_status_message_pane
|
|
.span-15.last
|
|
#facebox_header
|
|
%h3
|
|
= t('.mentioning', :person => @person.name)
|
|
|
|
= render :partial => 'shared/publisher', :locals => { :aspect => @aspect, :aspect_ids => @aspect_ids, :aspects_with_person => @aspects_with_person, :person => @person}
|
|
|