Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
10 additions
and
13 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
function() { | ||
var widget = $(this), app = $$(widget).app; | ||
$.evently.followChanges(app); | ||
$("body").bind("evently.changes."+app.db.name, function(e, resp) { | ||
$("body").bind("evently-changes-"+app.db.name, function(e, resp) { | ||
$('ul', widget).trigger("_init"); | ||
}); | ||
}; |
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,9 @@ | ||
function(e, p) { | ||
// set app to connect to changes with include docs (or support upgrade...) | ||
// filter js is a function to say whether or not you care about an update... | ||
// maybe there is a way to have it interact with startkey - endkey and the view definition? | ||
// autofilter for query json | ||
|
||
var ul = $(this), app = $$(ul).app; | ||
$.evently.followChanges(app); | ||
$("body").bind("evently.changes."+app.db.name, function(e, resp) { | ||
$("body").bind("evently-changes-"+app.db.name, function(e, resp) { | ||
$.each(resp.results, function() { | ||
$('li[data-user="'+this.doc.profile.name+'"].user ul', ul).trigger("_init"); | ||
}); | ||
}); | ||
// connect to changes | ||
// parse the ids | ||
// trigger dom elements that match them | ||
}; |
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