-
Notifications
You must be signed in to change notification settings - Fork 403
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds search; Faye callbacks for transport down and up; Some minor ref…
…actor to support search Signed-off-by: Akash Manohar J <akash@akash.im>
- Loading branch information
Showing
8 changed files
with
59 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,8 @@ | ||
<div class="container"> | ||
<%= javascript_tag do %> | ||
$(document).ready(function(){ | ||
Kandan.init() | ||
}) | ||
<%- end %> | ||
|
||
<%= javascript_tag do %> | ||
$(function() | ||
{ | ||
var channels_json = <%= @channels.to_json( | ||
:include => { | ||
:activities => { | ||
:include=>:user | ||
} | ||
}).html_safe %> | ||
}); | ||
<%- end %> | ||
|
||
</div> | ||
<div class="sidebar"> | ||
</div> | ||
<div class="container"></div> | ||
<div class="sidebar"></div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<%= javascript_tag do %> | ||
$(document).ready(function(){ | ||
Kandan.Plugins.init_all() | ||
activities = <%= @activities.to_json(:include => :user).html_safe %>; | ||
|
||
$.each(activities, function(index, activity_attributes) { | ||
activity = new Kandan.Models.Activity(activity_attributes) | ||
activity_view = new Kandan.Views.ShowActivity({activity: activity}); | ||
$('.activities').html(activity_view.render().el); | ||
}) | ||
}) | ||
|
||
<%- end %> | ||
|
||
<div class='activities'> | ||
</div> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters