postVisibilityUpdate: function(inSender, inEvent) {
if (inEvent.showing) {
this.show();
- if (inEvent.data && this.getData() == "")
+ this.$.postContent.focus();
+ if (inEvent.data && this.getData() == "") {
this.setData(inEvent.data);
+ this.$.postContent.node.setSelectionRange(inEvent.data.length, inEvent.data.length);
+ }
} else {
this.hide();
}
{noDom: true, content: ". "},
{name: "permalink", kind: "blerg.Link", content: "[permalink]"},
{noDom: true, content: " "},
- {name: "reply", kind: "blerg.Link", content: "[reply]", onclick: "postPopup"}
+ {name: "reply", kind: "blerg.Link", content: "[reply]", onNavigate: "postPopup"}
]}
],
create: function() {
postPopup: function() {
this.bubble('onPostVisibility', {
showing: true,
- data: enyo.macroize("@{$author}/{$record}", this)
+ data: enyo.macroize("@{$author}/{$record}: ", this)
});
return true;
}
{noDom: true, content: ". "},
{name: "permalink", kind: "blerg.Link", content: "[permalink]"},
{noDom: true, content: " "},
- {name: "reply", kind: "blerg.Link", content: "[reply]", onclick: "postPopup"}
+ {name: "reply", kind: "blerg.Link", content: "[reply]", onNavigate: "postPopup"}
]}
],
updateLinks: function() {