projects
/
blerg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Escape code mode
[blerg.git]
/
www
/
jssrc
/
blerg
/
Blerg.js
diff --git
a/www/jssrc/blerg/Blerg.js
b/www/jssrc/blerg/Blerg.js
index
45b7d5f
..
352962d
100644
(file)
--- a/
www/jssrc/blerg/Blerg.js
+++ b/
www/jssrc/blerg/Blerg.js
@@
-1,3
+1,6
@@
+// Listen for onsubmit events
+enyo.dispatcher.listen(document, "submit");
+
enyo.kind({
name: "blerg.Blerg",
kind: "Control",
enyo.kind({
name: "blerg.Blerg",
kind: "Control",
@@
-8,13
+11,16
@@
enyo.kind({
onTryLogin: "tryLogin",
onTryLogout: "tryLogout",
onSetTitle: "setTitle",
onTryLogin: "tryLogin",
onTryLogout: "tryLogout",
onSetTitle: "setTitle",
- onPostVisibility: "postVisibilityUpdate"
+ onPostVisibility: "postVisibilityUpdate",
+ onReload: "sendReload",
+ onShowChangePassword: "showChangePassword",
+ onClearFeedStatus: "clearFeedStatus"
},
components: [
{classes: "blerg-header", components: [
{name: "title", kind: "blerg.Title"},
{name: "controls", kind: "blerg.Controls"},
},
components: [
{classes: "blerg-header", components: [
{name: "title", kind: "blerg.Title"},
{name: "controls", kind: "blerg.Controls"},
- {style: "clear: both"},
+ {style: "clear: both
;
"},
{name: "post", kind: "blerg.Post", showing: false},
{name: "help", kind: "blerg.Help"}
]},
{name: "post", kind: "blerg.Post", showing: false},
{name: "help", kind: "blerg.Help"}
]},
@@
-88,5
+94,14
@@
enyo.kind({
postVisibilityUpdate: function(inSender, inEvent) {
this.$.post.waterfall('onPostVisibility', inEvent);
this.$.controls.waterfall('onPostVisibility', inEvent);
postVisibilityUpdate: function(inSender, inEvent) {
this.$.post.waterfall('onPostVisibility', inEvent);
this.$.controls.waterfall('onPostVisibility', inEvent);
+ },
+ sendReload: function() {
+ this.$.main.waterfall('onReload');
+ },
+ showChangePassword: function() {
+ this.$.passwdDialog.show();
+ },
+ clearFeedStatus: function() {
+ this.$.controls.waterfall('onClearFeedStatus');
}
});
}
});