+// Listen for onsubmit events
+enyo.dispatcher.listen(document, "submit");
+
enyo.kind({
name: "blerg.Blerg",
kind: "Control",
onTryLogout: "tryLogout",
onSetTitle: "setTitle",
onPostVisibility: "postVisibilityUpdate",
- onReload: "sendReload"
+ onReload: "sendReload",
+ onShowChangePassword: "showChangePassword",
+ onAuthFailure: "authFailure"
},
components: [
{classes: "blerg-header", components: [
},
sendReload: function() {
this.$.main.waterfall('onReload');
+ },
+ showChangePassword: function() {
+ this.$.passwdDialog.show();
+ },
+ authFailure: function(inSender, inEvent) {
+ this.logout();
}
});