Sha256: 7348f44b01ca84dbc8ed27af5951dd4a5f6a537866c5e5e1a848504d685f8a83

Contents?: true

Size: 1.41 KB

Versions: 6

Compression:

Stored size: 1.41 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_case: 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": "<%= @recipient.name %>", "value": "<%= @recipient.id %>"}]);
	<% end %>

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

<% end %>

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

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
social_stream-base-0.5.2 app/views/messages/new.html.erb
social_stream-base-0.5.1 app/views/messages/new.html.erb
social_stream-base-0.5.0 app/views/messages/new.html.erb
social_stream-0.4.6 app/views/messages/new.html.erb
social_stream-0.4.5 app/views/messages/new.html.erb
social_stream-0.4.4 app/views/messages/new.html.erb