Sha256: 2cade0adfd74df0e8bd1b246dd1595c636a08276862aadcd7c521a7aabda7473

Contents?: true

Size: 1.05 KB

Versions: 11

Compression:

Stored size: 1.05 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_message('#ajax-messages') %>
        }
      });
    return false;
  });
}
jQuery(document).ready(function() {
  setup_delete_links();
});
<% end -%>

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
muck-raker-0.1.49 app/views/google/_feeds_scripts.html.erb
muck-raker-0.1.48 app/views/google/_feeds_scripts.html.erb
muck-raker-0.1.47 app/views/google/_feeds_scripts.html.erb
muck-raker-0.1.46 app/views/google/_feeds_scripts.html.erb
muck-raker-0.1.45 app/views/google/_feeds_scripts.html.erb
muck-raker-0.1.43 app/views/google/_feeds_scripts.html.erb
muck-raker-0.1.42 app/views/google/_feeds_scripts.html.erb
muck-raker-0.1.41 app/views/google/_feeds_scripts.html.erb
muck-raker-0.1.40 app/views/google/_feeds_scripts.html.erb
muck-raker-0.1.39 app/views/google/_feeds_scripts.html.erb
muck-raker-0.1.38 app/views/google/_feeds_scripts.html.erb