Sha256: 6092b0dae3d0b0cd4c5033336fb45b65652408297af978cdd5b68e43f0620f93

Contents?: true

Size: 917 Bytes

Versions: 41

Compression:

Stored size: 917 Bytes

Contents

<% content_for :head do -%>
  <%= javascript_include_tag 'muck_services.js' %>
  <%= javascript_tag %[var ADD_SHARE_MESSAGE = '#{t('muck.shares.adding_share')}';] %>
<% end -%>
<% content_for :javascript do -%>
  jQuery(document).ready(function() {
    <%= "show_tool('comments');" if params[:show_comments] || @entry.comment_count > 0 -%>
    jQuery(window).bind('resize', function() {
      maximize_space();
    });
    jQuery('#comment').click(function(){
      return show_tool('comments');
    });
    jQuery('#share').click(function(){
      return show_tool('share');
    });
    jQuery('.close_link').click(function(){
      jQuery('.tool').hide();
      jQuery("#content_iframe").width('100%');
      jQuery('#recs_panel').css("left", jQuery("#toolbar").width() - 252);
      return false;
    });
    setup_entry_comment_submit();
    setup_share_submit();
    apply_frame_comment_hover();
  });
<% end -%>

Version data entries

41 entries across 41 versions & 1 rubygems

Version Path
muck-services-0.1.13 app/views/visits/_frame_scripts.html.erb