X-Git-Url: http://git.bytex64.net/?a=blobdiff_plain;f=www%2Fjssrc%2Fblerg%2FControls.js;h=165b1000ffc0fbbe176633b1deae6540be6e5ea4;hb=2d498144a3a655c1fd4e54b9e9d61d1c3eb82206;hp=daf06bd2ba94e6eeff2debff0f27033c8594ec93;hpb=04a4fdf9d85e0d0b193300abe0c0e433449cd285;p=blerg.git diff --git a/www/jssrc/blerg/Controls.js b/www/jssrc/blerg/Controls.js index daf06bd..165b100 100644 --- a/www/jssrc/blerg/Controls.js +++ b/www/jssrc/blerg/Controls.js @@ -17,28 +17,25 @@ enyo.kind({ {tag: "form", onsubmit: "loginClicked", classes: "login", components: [ {kind: "onyx.Groupbox", components: [ {kind: "onyx.InputDecorator", components: [ - {name: "username", kind: "onyx.Input", placeholder: "Username"} + {name: "username", kind: "onyx.Input", placeholder: "Username", attributes: {tabindex: 1}} ]}, {kind: "onyx.InputDecorator", components: [ - {name: "password", kind: "onyx.Input", placeholder: "Password", type: "password"} + {name: "password", kind: "onyx.Input", placeholder: "Password", type: "password", attributes: {tabindex: 2}} ]}, ]}, - {kind: "onyx.Button", content: "Login", onclick: "loginClicked"} + {kind: "onyx.Button", content: "Login", onclick: "loginClicked", attributes: {tabindex: 3}} ]} ]}, {name: "loggedInControls", showing: false, components: [ {name: "greeting", components: [ - {noDom: true, content: "Hello, "}, + {tag: null, content: "Hello, "}, {name: "userlink", tag: "a"}, - {noDom: true, content: ". "}, + {tag: null, content: ". "}, {kind: "blerg.Link", content: "Logout", onNavigate: "logoutClicked"}, - {noDom: true, content: "."} - ]}, - {components: [ - {name: "rssButton", kind: "blerg.Link", showing: false, components: [ - {kind: "Image", src: "/images/rss.png", width: 16, height: 16}, - {noDom: true, content: " RSS"} - ]} + {tag: null, content: "."}, + {tag: "br"}, + {kind: "blerg.Link", content: "Change Password", onNavigate: "changePasswordClicked"}, + {tag: null, content: "."} ]}, {classes: "blerg-controls-toolbar", components: [ {kind: "onyx.Button", content: "Feed Your Vanity", onclick: "chatterClicked"}, @@ -94,6 +91,9 @@ enyo.kind({ this.setLoggedIn(false); clearInterval(this.feedStatusUpdateInterval); }, + changePasswordClicked: function() { + this.bubble('onShowChangePassword'); + }, spewToggle: function(inSender, inEvent) { this.postShowing = !this.postShowing; this.bubble('onPostVisibility', {showing: this.postShowing});