Sha256: 93ec39a171b051a68477bdbca925bef8fe01b4040878aed8f4882fb1d22204c7
Contents?: true
Size: 1.09 KB
Versions: 1
Compression:
Stored size: 1.09 KB
Contents
<% content_for :title do %> <%=t('message.other')%> <% end %> <% content_for :sidebar do %> <%= render :partial => 'home/sidebar' %> <% end %> <% toolbar :option => :messages %> <% 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
social_stream-base-0.7.1 | app/views/messages/new.html.erb |