onTryLogin: "tryLogin",
onTryLogout: "tryLogout",
onSetTitle: "setTitle",
- onPostVisibility: "postVisibilityUpdate"
+ onPostVisibility: "postVisibilityUpdate",
+ onReload: "sendReload"
},
components: [
{classes: "blerg-header", components: [
postVisibilityUpdate: function(inSender, inEvent) {
this.$.post.waterfall('onPostVisibility', inEvent);
this.$.controls.waterfall('onPostVisibility', inEvent);
+ },
+ sendReload: function() {
+ this.$.main.waterfall('onReload');
}
});
postSuccessful: function() {
this.setData('');
this.closePost();
- this.href = '#' + blerg.API.username;
+ if (location.hash != '#' + blerg.API.username) {
+ qlink(blerg.API.username);
+ } else {
+ this.bubble('onReload');
+ }
},
postFailed: function() {
alert('Could not post!');
listKind: "blerg.Record",
handlers: {
onLogin: "getStalkStatus",
- onLogout: "getStalkStatus"
+ onLogout: "getStalkStatus",
+ onReload: "usernameChanged"
},
published: {
username: "",