|
50 |
|
50 |
|
51 |
umcpCommand: umc.tools.umcpCommand, |
51 |
umcpCommand: umc.tools.umcpCommand, |
52 |
|
52 |
|
|
|
53 |
// the parent instance |
54 |
setup: null, |
55 |
|
53 |
// internal reference to the formular containing all form widgets of an UDM object |
56 |
// internal reference to the formular containing all form widgets of an UDM object |
54 |
_form: null, |
57 |
_form: null, |
55 |
|
58 |
|
|
137 |
|
140 |
|
138 |
this.addChild(this._form); |
141 |
this.addChild(this._form); |
139 |
|
142 |
|
|
|
143 |
// actualize ssl/email on FQDN changes |
144 |
var cache = false; |
145 |
var emailWidget = this._form.getWidget('ssl/email'); |
146 |
var sslemail = this.connect(this.setup._pages[2]._form.getWidget('fqdn'), 'onChange', function(newVal) { |
147 |
if(false === cache) { |
148 |
cache = this._orgVals['ssl/email']; |
149 |
} |
150 |
if( emailWidget.get('value') === cache) { |
151 |
var email = 'ssl@' + newVal.split('.').slice(1).join('.'); |
152 |
emailWidget.set('value', email); |
153 |
cache = email; |
154 |
} else { |
155 |
this.disconnect(sslemail); |
156 |
} |
157 |
}); |
158 |
|
140 |
var countryWidget = this._form.getWidget('ssl/country'); |
159 |
var countryWidget = this._form.getWidget('ssl/country'); |
141 |
var _addCurrentCountry = function() { |
160 |
var _addCurrentCountry = function() { |
142 |
if (countryWidget.focused) { |
161 |
if (countryWidget.focused) { |