Sha256: 0076a0799c076f736b131bb1deef77d8ac607d618e3ea815eda7b8d8f7f99b8a

Contents?: true

Size: 865 Bytes

Versions: 10

Compression:

Stored size: 865 Bytes

Contents

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

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

<%= location(
  link_to(image_tag("btn/new.png", :class => "menu_icon")+t('message.other'), conversations_path,:remote => true),
  link_to(image_tag("btn/message_new.png", :class => "menu_icon")+ t('message.new'), new_message_path, :remote => true)
) %>


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

  $("#body").cleditor({
    width:493,
    controls:  "<%= t('cleditor.controls')%>"   
  });

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

$(".new_message").validate({errorClass: "validation_error"});

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
social_stream-0.11.7 base/app/views/messages/new.js.erb
social_stream-base-0.9.21 app/views/messages/new.js.erb
social_stream-0.11.6 base/app/views/messages/new.js.erb
social_stream-base-0.9.20 app/views/messages/new.js.erb
social_stream-0.11.5 base/app/views/messages/new.js.erb
social_stream-0.11.4 base/app/views/messages/new.js.erb
social_stream-0.11.3 base/app/views/messages/new.js.erb
social_stream-base-0.9.19 app/views/messages/new.js.erb
social_stream-0.11.2 base/app/views/messages/new.js.erb
social_stream-base-0.9.18 app/views/messages/new.js.erb