View | Details | Raw Unified | Return to bug 25710
Collapse All | Expand All

(-)umc/js/_setup/CertificatePage.js (+19 lines)
 Lines 50-55    Link Here 
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
 Lines 137-142    Link Here 
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) {
(-)umc/js/setup.js (+1 lines)
 Lines 146-151    Link Here 
146
				var ipage = new Class({
146
				var ipage = new Class({
147
					umcpCommand: dojo.hitch(this, 'umcpCommand'),
147
					umcpCommand: dojo.hitch(this, 'umcpCommand'),
148
					footerButtons: buttons,
148
					footerButtons: buttons,
149
					setup: this,
149
					moduleFlavor: this.moduleFlavor,
150
					moduleFlavor: this.moduleFlavor,
150
					onSave: dojo.hitch(this, function() {
151
					onSave: dojo.hitch(this, function() {
151
						if (i < visiblePages.length - 1) {
152
						if (i < visiblePages.length - 1) {

Return to bug 25710