0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00

Merge pull request #4859 from jaswilli/url-concat

Set 'value' property before a dependent CP is used
This commit is contained in:
Matt Enlow 2015-01-27 16:01:54 -07:00
commit 1ac1f7880a

View file

@ -27,13 +27,13 @@ var NavItemUrlInputComponent = Ember.TextField.extend({
var url = this.get('url'),
baseUrl = this.get('baseUrl');
this.set('value', url);
// if we have a relative url, create the absolute url to be displayed in the input
if (this.get('isRelative')) {
url = joinUrlParts(baseUrl, url);
this.set('value', url);
}
this.set('value', url);
this.sendAction('change', this.get('value'));
},
focusIn: function (event) {