X-Git-Url: http://git.bytex64.net/?a=blobdiff_plain;f=www%2Fjssrc%2Fblerg%2FBlerg.js;h=352962d6d450f1589e3e8731e36487c5cd458dd5;hb=0d038928d70d93531bf2587abd44e7648057f0ab;hp=22bfddbd0f772c98c58316852c6d03401122a1f9;hpb=3e5f69d01b9488475413d4ecce8161ab7a889ca2;p=blerg.git diff --git a/www/jssrc/blerg/Blerg.js b/www/jssrc/blerg/Blerg.js index 22bfddb..352962d 100644 --- 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", @@ -9,7 +12,9 @@ enyo.kind({ onTryLogout: "tryLogout", onSetTitle: "setTitle", onPostVisibility: "postVisibilityUpdate", - onReload: "sendReload" + onReload: "sendReload", + onShowChangePassword: "showChangePassword", + onClearFeedStatus: "clearFeedStatus" }, components: [ {classes: "blerg-header", components: [ @@ -92,5 +97,11 @@ enyo.kind({ }, sendReload: function() { this.$.main.waterfall('onReload'); + }, + showChangePassword: function() { + this.$.passwdDialog.show(); + }, + clearFeedStatus: function() { + this.$.controls.waterfall('onClearFeedStatus'); } });