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

(-)a/management/univention-management-console-module-udm/umc/js/udm/ComboBox.js (-5 / +9 lines)
 Lines 36-46   define([ Link Here 
36
	"dojo/on",
36
	"dojo/on",
37
	"dojo/keys",
37
	"dojo/keys",
38
	"dojo/dom-construct",
38
	"dojo/dom-construct",
39
	"dojo/dom-style",
39
	"dojo/Deferred",
40
	"dojo/Deferred",
40
	"umc/tools",
41
	"umc/tools",
41
	"umc/widgets/ComboBox",
42
	"umc/widgets/ComboBox",
42
	"umc/i18n!umc/modules/udm"
43
	"umc/i18n!umc/modules/udm"
43
], function(declare, lang, array, when, on, keys, domConstruct, Deferred, tools, ComboBox, _) {
44
], function(declare, lang, array, when, on, keys, domConstruct, domStyle, Deferred, tools, ComboBox, _) {
44
	return declare("umc.modules.udm.ComboBox", [ ComboBox ], {
45
	return declare("umc.modules.udm.ComboBox", [ ComboBox ], {
45
		// summary:
46
		// summary:
46
		//		This class extends the normal ComboBox in order to encapsulate
47
		//		This class extends the normal ComboBox in order to encapsulate
 Lines 147-159   define([ Link Here 
147
			// new nodes (replacing the original arrow)
148
			// new nodes (replacing the original arrow)
148
			// if needed
149
			// if needed
149
			this._currentNode = this._buttonNode;
150
			this._currentNode = this._buttonNode;
150
			var url = require.toUrl('dijit/themes/umc/form/images/');
151
			this._searchNode = lang.clone(this._buttonNode);
151
			this._searchNode = lang.clone(this._buttonNode);
152
			this._searchNode.childNodes[0].style.backgroundImage = 'url("' + url + 'find.png")';
152
			domStyle.set(this._searchNode.firstElementChild, {
153
			this._searchNode.childNodes[0].style.backgroundPosition = 'center';
153
				'backgroundPosition': '-260px -40px'
154
			});
154
			this.own(on(this._searchNode, 'click', lang.hitch(this, '_searchDisplayedValueOnServerAndOpen')));
155
			this.own(on(this._searchNode, 'click', lang.hitch(this, '_searchDisplayedValueOnServerAndOpen')));
155
			this._searchingNode = lang.clone(this._searchNode);
156
			this._searchingNode = lang.clone(this._searchNode);
156
			this._searchingNode.childNodes[0].style.backgroundImage = 'url("' + url + 'loading.gif")';
157
			domStyle.set(this._searchingNode.firstElementChild, {
158
				'background': lang.replace('url({0})', [require.toUrl('dijit/themes/umc/form/images/loading.gif')]),
159
				'backgroundSize': 'contain'
160
			});
157
161
158
			if (!this.depends) {
162
			if (!this.depends) {
159
				this._checkThreshold().then(lang.hitch(this, function(result) {
163
				this._checkThreshold().then(lang.hitch(this, function(result) {

Return to bug 37309