muck-activities 0.1.13 → 0.1.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.13
1
+ 0.1.14
@@ -22,7 +22,7 @@ class Muck::ActivitiesController < ApplicationController
22
22
  def create
23
23
  @activity = @parent.activities.build(params[:activity])
24
24
  @activity.source = @parent
25
- @activity.content.gsub!(@parent.display_name, '')
25
+ @activity.content.gsub!(@parent.display_name, '') if @activity.template == 'status_update'
26
26
  @parent.save!
27
27
  @activity_html = get_activity_html(@activity)
28
28
  if @activity.template == 'status_update'
@@ -12,7 +12,7 @@
12
12
  jQuery(document).ready(function(){
13
13
  setup_submit_delete();
14
14
  <% if GlobalConfig.enable_live_activity_updates -%>
15
- 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') %>&amp;latest_activity_id=' + get_latest_activity_id()})}, <%=GlobalConfig.live_activity_update_interval%> * 1000)
15
+ 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') %>&amp;latest_activity_id=' + get_latest_activity_id()})}, <%=GlobalConfig.live_activity_update_interval%> * 1000)
16
16
  <% end -%>
17
17
  });
18
18
  <% end -%>
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{muck-activities}
5
- s.version = "0.1.13"
5
+ s.version = "0.1.14"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Justin Ball"]
9
- s.date = %q{2009-07-07}
9
+ s.date = %q{2009-07-08}
10
10
  s.description = %q{Activity engine for the muck system.}
11
11
  s.email = %q{justinball@gmail.com}
12
12
  s.extra_rdoc_files = [
@@ -83,7 +83,7 @@ function show_comment_box(obj){
83
83
  }
84
84
 
85
85
  function get_latest_activity_id(){
86
- var activities = jQuery('#activity-feed-content').children('.activity-status-update');
86
+ var activities = jQuery('#activity-feed-content').children('.activity');
87
87
  if(activities.length > 0){
88
88
  return activities[0].id.replace('activity_', '');
89
89
  } else {
@@ -75,7 +75,7 @@ function show_comment_box(obj){
75
75
  }
76
76
 
77
77
  function get_latest_activity_id(){
78
- var activities = jQuery('#activity-feed-content').children('.activity-status-update');
78
+ var activities = jQuery('#activity-feed-content').children('.activity');
79
79
  if(activities.length > 0){
80
80
  return activities[0].id.replace('activity_', '');
81
81
  } else {
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: muck-activities
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.13
4
+ version: 0.1.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Ball
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-07-07 00:00:00 -06:00
12
+ date: 2009-07-08 00:00:00 -06:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency