app/views/activities/_activity_feed.html.erb in muck-activities-0.1.26 vs app/views/activities/_activity_feed.html.erb in muck-activities-0.1.27
- old
+ new
@@ -4,10 +4,9 @@
</div>
</div>
<%= will_paginate activities, :previous_label => t('muck.activities.paging_newer'), :next_label => t('muck.activities.paging_older') -%>
<% content_for :javascript do -%>
jQuery(document).ready(function(){
- setup_submit_delete();
<% if GlobalConfig.enable_live_activity_updates -%>
setInterval(function() {jQuery.ajax({success:function(request){update_feed(request);}, type: "GET", url:'<%= activities_path(:parent_id => activities_object, :parent_type => activities_object.class, :activity_filter => params[:activity_filter], :format => 'js') %>&latest_activity_id=' + get_latest_activity_id()})}, <%=GlobalConfig.live_activity_update_interval%> * 1000)
<% end -%>
});
<% end -%>