Sha256: ca328aba2eaf268abe9fcaeee972958a0548af613ae4c0db9173b357b5dff132

Contents?: true

Size: 1.13 KB

Versions: 5

Compression:

Stored size: 1.13 KB

Contents

<% content_for :javascript do -%>
function google_load_complete(uri, content_id) {
  jQuery('.hentry .entry').hide();
  jQuery('.hentry h4 .entry-close').hide();
  jQuery('.hentry h4 a.entry-link-close').click(function(){
    jQuery(this).parent().parent().siblings('.entry').hide();
    jQuery(this).parent().hide();
    return false;
  });
  jQuery('.hentry h4 a.entry-link').click(function(){
    jQuery(this).parent().siblings('.entry').show();
    jQuery(this).siblings('.entry-close').show();
    return false;
  });
}
function setup_delete_links() {
  jQuery(".delete-link").click(function() {
    var container = jQuery(this).parents('div.feed');
    container.fadeOut(500, function() {
      jQuery(this).remove();
    });
    jQuery.post(jQuery(this).attr('href'), { '_method': 'delete', 'format': 'json' },
      function(data){
        var json = eval('(' + data + ')');
        if(!json.success){
          jQuery('#ajax-messages').html(json.message);
          jQuery('#ajax-messages').show();
        }
      });
    return false;
  });
}
jQuery(document).ready(function() {
  google_load_complete('','');
  setup_delete_links();  
});
<% end -%>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
overlord-3.0.2 app/views/google/_feeds_scripts.html.erb
overlord-3.0.1 app/views/google/_feeds_scripts.html.erb
overlord-3.0.0 app/views/google/_feeds_scripts.html.erb
overlord-0.1.22 app/views/google/_feeds_scripts.html.erb
overlord-0.1.21 app/views/google/_feeds_scripts.html.erb