app/views/activities/_activity_feed.html.erb in muck-activities-0.1.13 vs app/views/activities/_activity_feed.html.erb in muck-activities-0.1.14
- old
+ new
@@ -10,10 +10,10 @@
<% end -%>
<% 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);},url:'<%= activities_path(:parent_id => activities_object, :parent_type => activities_object.type, :activity_filter => params[:activity_filter], :format => 'js') %>&latest_activity_id=' + get_latest_activity_id()})}, <%=GlobalConfig.live_activity_update_interval%> * 1000)
+ setInterval(function() {jQuery.ajax({success:function(request){update_feed(request);}, type: "GET", url:'<%= activities_path(:parent_id => activities_object, :parent_type => activities_object.type, :activity_filter => params[:activity_filter], :format => 'js') %>&latest_activity_id=' + get_latest_activity_id()})}, <%=GlobalConfig.live_activity_update_interval%> * 1000)
<% end -%>
});
<% end -%>
<%= javascript_include_tag 'muck_activities' %>
\ No newline at end of file