projects
/
blerg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update webapp for /status changes
[blerg.git]
/
www
/
jssrc
/
blerg
/
Feed.js
diff --git
a/www/jssrc/blerg/Feed.js
b/www/jssrc/blerg/Feed.js
index
98e7ffb
..
05a549a
100644
(file)
--- a/
www/jssrc/blerg/Feed.js
+++ b/
www/jssrc/blerg/Feed.js
@@
-15,7
+15,8
@@
enyo.kind({
{name: "records"},
{name: "spinner", kind: "OldSchoolSpinner", showing: false},
{name: "api", kind: "blerg.API",
{name: "records"},
{name: "spinner", kind: "OldSchoolSpinner", showing: false},
{name: "api", kind: "blerg.API",
- onItemsLoaded: "itemsLoaded"}
+ onItemsLoaded: "itemsLoaded",
+ onClearStatus: "clearStatus"}
],
statics: {
locationDetect: function(l) {
],
statics: {
locationDetect: function(l) {
@@
-35,6
+36,11
@@
enyo.kind({
},
itemsLoaded: function(inSender, inEvent) {
this.addItems(inEvent.entries);
},
itemsLoaded: function(inSender, inEvent) {
this.addItems(inEvent.entries);
- this.bubble('onClearFeedStatus');
+ this.$.api.clearStatus('feed');
+ },
+ clearStatus: function(inSender, inEvent) {
+ if (inEvent.type == 'feed' && inEvent.status == 'success') {
+ enyo.Signals.send('onClearNotification', {type: inEvent.type});
+ }
}
});
}
});