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

(-)a/management/univention-management-console-frontend/umc/widgets/Button.js (-7 / +4 lines)
 Lines 95-113   define([ Link Here 
95
		},
95
		},
96
96
97
		_setDescriptionAttr: function(description) {
97
		_setDescriptionAttr: function(description) {
98
			if (description && this.handlesTooltips) {
98
			if (!this._tooltip) {
99
				// create the tooltip for the first time
99
				this._tooltip = new Tooltip({
100
				this._tooltip = new Tooltip({
100
					label: description,
101
					label: description,
101
					connectId: [ this.domNode ]
102
					connectId: [ this.domNode ]
102
				});
103
				});
103
				// destroy the tooltip when the widget is destroyed
104
				this.own(this._tooltip);
104
				this.own(this._tooltip);
105
			} else {
106
				if (this._tooltip) {
107
					//deactivate tooltip
108
					this._tooltip.set('label', '');
109
				}
110
			}
105
			}
106
107
			this._tooltip.set('label', description || '');
111
		}
108
		}
112
109
113
	});
110
	});
(-)a/management/univention-management-console-frontend/umc/widgets/Uploader.js (-8 / +5 lines)
 Lines 326-344   define([ Link Here 
326
326
327
327
328
		_setDescriptionAttr: function(description) {
328
		_setDescriptionAttr: function(description) {
329
			if (description && this.handlesTooltips) {
329
			if (!this._tooltip) {
330
				// create the tooltip for the first time
330
				this._tooltip = new Tooltip({
331
				this._tooltip = new Tooltip({
331
					label: description,
332
					label: description,
332
					connectId: [ this.domNode ]
333
					connectId: [ this.domNode ]
333
				});
334
				});
334
				// destroy the tooltip when the widget is destroyed
335
				this.own(this._tooltip);
335
				this.own(this.tooltip);
336
			} else {
337
				if (this._tooltip) {
338
					//deactivate tooltip
339
					this._tooltip.set('label', '');
340
				}
341
			}
336
			}
337
338
			this._tooltip.set('label', description || '');
342
		},
339
		},
343
340
344
		_setDisabledAttr: function(newVal) {
341
		_setDisabledAttr: function(newVal) {

Return to bug 39109