Index: umc/js/_setup/CertificatePage.js =================================================================== --- umc/js/_setup/CertificatePage.js (Revision 30950) +++ umc/js/_setup/CertificatePage.js (Arbeitskopie) @@ -50,6 +50,9 @@ umcpCommand: umc.tools.umcpCommand, + // the parent instance + setup: null, + // internal reference to the formular containing all form widgets of an UDM object _form: null, @@ -137,6 +140,22 @@ this.addChild(this._form); + // actualize ssl/email on FQDN changes + var cache = false; + var emailWidget = this._form.getWidget('ssl/email'); + var sslemail = this.connect(this.setup._pages[2]._form.getWidget('fqdn'), 'onChange', function(newVal) { + if(false === cache) { + cache = this._orgVals['ssl/email']; + } + if( emailWidget.get('value') === cache) { + var email = 'ssl@' + newVal.split('.').slice(1).join('.'); + emailWidget.set('value', email); + cache = email; + } else { + this.disconnect(sslemail); + } + }); + var countryWidget = this._form.getWidget('ssl/country'); var _addCurrentCountry = function() { if (countryWidget.focused) { Index: umc/js/setup.js =================================================================== --- umc/js/setup.js (Revision 30955) +++ umc/js/setup.js (Arbeitskopie) @@ -146,6 +146,7 @@ var ipage = new Class({ umcpCommand: dojo.hitch(this, 'umcpCommand'), footerButtons: buttons, + setup: this, moduleFlavor: this.moduleFlavor, onSave: dojo.hitch(this, function() { if (i < visiblePages.length - 1) {