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:
commit
1ac1f7880a
1 changed files with 3 additions and 3 deletions
|
@ -27,13 +27,13 @@ var NavItemUrlInputComponent = Ember.TextField.extend({
|
||||||
var url = this.get('url'),
|
var url = this.get('url'),
|
||||||
baseUrl = this.get('baseUrl');
|
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 we have a relative url, create the absolute url to be displayed in the input
|
||||||
if (this.get('isRelative')) {
|
if (this.get('isRelative')) {
|
||||||
url = joinUrlParts(baseUrl, url);
|
url = joinUrlParts(baseUrl, url);
|
||||||
|
this.set('value', url);
|
||||||
}
|
}
|
||||||
|
|
||||||
this.set('value', url);
|
|
||||||
this.sendAction('change', this.get('value'));
|
|
||||||
},
|
},
|
||||||
|
|
||||||
focusIn: function (event) {
|
focusIn: function (event) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue