Sha256: 8102470cdd86637b7eaa91a11b5b901c770ead18a6376479d4c8ca14f86a2cdb
Contents?: true
Size: 1.39 KB
Versions: 4
Compression:
Stored size: 1.39 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": "<%= @recipient.name %>", "value": "<%= @recipient.id %>"}]); <% end %> $(".new_message").validate(); <% end %> <%= render :partial => 'new' %>
Version data entries
4 entries across 4 versions & 1 rubygems