Commit af96df7a authored by Pedro Eduardo Trujillo's avatar Pedro Eduardo Trujillo
Browse files

Actualiza módulos, permite disable por defecto

parent ff9271ab
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -47,9 +47,6 @@ define([
				parentChannel: this.getChannel(),
				target: this.target,
				queryChannel: this.queryChannel,
				highlightField: ['name'],
				suggestFields: ['name', 'code'],
				searchFields: ['name', 'code']
			}, this.textSearchConfig || {}]);

			this.textSearch = new TextImpl(this.textSearchConfig);
+10 −0
Original line number Diff line number Diff line
@@ -52,6 +52,16 @@ define([
			}

			return this._inputProps.value || false;
		},

		_enable: function() {

			this.inherited(arguments);

			var obj = {};
			obj[this.propertyName] = this._inputProps.value || false;

			this._emitSetValue(obj);
		}
	});
});
+0 −2
Original line number Diff line number Diff line
@@ -26,8 +26,6 @@ define([

		_createInputInstance: function() {

			this._inputDisabled = true;

			return false;
		},

+2 −4
Original line number Diff line number Diff line
@@ -32,6 +32,7 @@ define([
		_afterCreateNodesAndInstance: function() {

			if (this._inputProps.isDisableInput) {
				this._inputDisabled = this._inputProps.disabled;
				this._createSwitchDisable();
			}
		},
@@ -39,10 +40,8 @@ define([
		_createSwitchDisable: function() {

			if (this.containerSwitchDisable) {

				this.containerSwitchDisable.onclick = lang.hitch(this, this._onClickSwitchDisable);

				this._inputDisabled ? this._disable() : this._enableButton();
				this._inputDisabled ? this._disable() : this._enable/*Button*/();
			}
		},

@@ -71,7 +70,6 @@ define([
		_enableButton: function() {

			if (this._inputProps.isDisableInput && this.containerSwitchDisable) {

				put(this.containerSwitchDisable, '!fa-toggle-off');
				put(this.containerSwitchDisable, '.fa-toggle-on');
				put(this.containerSwitchDisable, '[title=$]', this.i18n.disable);
Compare ccf5dbe0 to 6f286287
Original line number Diff line number Diff line
Subproject commit ccf5dbe0c19b6a51784d5a02ac39fd9ea70767b0
Subproject commit 6f286287f889469dc81c5539c0a107cd22783f50
Loading