Sha256: 1267a6c3808ff26090e491269e9941251507c034ad6765a5364602da42e613d7

Contents?: true

Size: 806 Bytes

Versions: 2

Compression:

Stored size: 806 Bytes

Contents

$("#content").html("<%= escape_javascript(render :partial => 'new') %>");

<%= toolbar :option => :messages %>


var recipients = $("#_recipients").fcbkcomplete({
        json_url: "<%= contacts_path(:format => :json) %>",
	cache: true,
	filter_hide: true,
	newel: false,
	height: 6
});


$('#body').ckeditor(
);

var editor = $('#body').ckeditorGet();

editor.on("instanceReady", function(){
	this.document.on("keyup", updateTextArea);
	this.document.on("paste", updateTextArea);
	this.document.on("mousedown", updateTextArea);
});

var updateTextArea = function (){
	editor.updateElement();
	$("#body").trigger('keyup');
}

<% unless @recipient.nil? %>
	$("#_recipients").trigger("addItem",[{"title": "<%= @recipient.name %>", "value": "<%= @recipient.id %>"}]);
<% end %>

$(".new_message").validate();

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
social_stream-base-0.7.2 app/views/messages/new.js.erb
social_stream-base-0.7.1 app/views/messages/new.js.erb