Sha256: 1c8d2e65d326d3ea7d16f122700caf43ad381cc03fbc8f304ee9b5b302dda8b7

Contents?: true

Size: 1.4 KB

Versions: 3

Compression:

Stored size: 1.4 KB

Contents

<% content_for :title do %>
  <%=t('message.other')%>
<% end %>
<% content_for :sidebar do %>
  <%= render :partial => 'home/sidebar' %>
<% end %>

<% toolbar :option => :messages %>

<% content_for :headers do %>
  <%= stylesheet_link_tag "messages.css", :media => "screen, projection" %>
  <%= stylesheet_link_tag "fcbkComplete.css", :media => "screen, projection" %>
  <%= javascript_include_tag 'jquery.fcbkcomplete.min','jquery.validate','ckeditor/ckeditor.js','ckeditor/adapters/jquery.js' %>
<% end %>

<% content_for :javascript do %>

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

	
	$('#body').ckeditor(
	 function(){
	  $('#cke_top_body').click( updateTextArea);
	 },
	 		{ width:493 }
	);
	
	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": "<%= truncate_name @recipient.name %>", "value": "<%= @recipient.id %>"}]);
	<% end %>

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

<% end %>

<%= render :partial => 'new' %>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
social_stream-base-0.6.8 app/views/messages/new.html.erb
social_stream-base-0.6.6 app/views/messages/new.html.erb
social_stream-base-0.6.5 app/views/messages/new.html.erb