Sha256: 5d9ab2b0675f2983879e252d441b11472822d2747f2735e5d2bd27275ee33f5a
Contents?: true
Size: 1.25 KB
Versions: 2
Compression:
Stored size: 1.25 KB
Contents
$("#content").html("<%= escape_javascript(render :partial => 'show') %>"); <%= toolbar :option => :messages %> $('.cont_conversation').validate(); <% unless @box.eql?'trash' %> $('#body').ckeditor( function(){$('#cke_top_body').click( updateTextArea); var message_hash = window.location.hash.match(/^.*message_(\d+).*$/); if (message_hash && message_hash.length > 0){ $.scrollTo('#message_' + message_hash[1] ,1500,{axis:'y'}); }else{ $.scrollTo('#message_<%= @conversation.last_message.id %>',1500,{axis:'y'}); } }, { width:525, customConfig:'/javascripts/ckeditor/config.js',skin:'../javascripts/ckeditor/skins/kama'} ); 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'); } <% else %> var message_hash = window.location.hash.match(/^.*message_(\d+).*$/); if (message_hash && message_hash.length > 0){ $.scrollTo('#message_' + message_hash[1] ,1500,{axis:'y'}); }else{ $.scrollTo('#message_<%= @conversation.last_message.id %>',1500,{axis:'y'}); } <% end %>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
social_stream-base-0.7.2 | app/views/conversations/show.js.erb |
social_stream-base-0.7.1 | app/views/conversations/show.js.erb |