Commit 1aff0646 authored by Pedro Eduardo Trujillo's avatar Pedro Eduardo Trujillo
Browse files

Elimina restos de seleccionar todo e invertir

parent 53a94178
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -68,10 +68,6 @@ define([
					input: this.getChannel("CLEAR_SELECTION"),
					output: this.getChannel("SELECTION_CLEARED"),
					subMethod: "clearSelection"
				},{
					input: this.getChannel("SELECT_ALL"),
					output: this.getChannel("SELECTED_ALL"),
					subMethod: "selectAll"
				}]
			});
		},
+0 −42
Original line number Diff line number Diff line
@@ -57,12 +57,6 @@ define([
			},{
				channel : this.getChannel("CLEAR_SELECTION"),
				callback: "_subClearSelection"
			},{
				channel : this.getChannel("SELECT_ALL"),
				callback: "_subSelectAll"
			},{
				channel : this.getChannel("REVERSE"),
				callback: "_subReverse"
			},{
				channel : this.getChannel("TOTAL"),
				callback: "_subTotal"
@@ -87,14 +81,6 @@ define([
				event: 'CLEAR_SELECTION',
				channel: this.getChannel("SELECTION_CLEARED"),
				callback: "_pubSelectionCleared"
			},{
				event: 'SELECT_ALL',
				channel: this.getChannel("SELECTED_ALL"),
				callback: "_pubSelectedAll"
			},{
				event: 'REVERSED',
				channel: this.getChannel("REVERSED"),
				callback: "_pubReversed"
			},{
				event: 'TOTAL',
				channel: this.getChannel("TOTAL_AVAILABLE"),
@@ -378,34 +364,6 @@ define([
			}
		},

		_subSelectAll: function(request) {

			this._emitSelectionTargetLoading(request.selectionTarget);
			this._selectAll(request);
		},

		_pubSelectedAll: function(channel, item) {

			this._publish(channel, {
				success: true,
				body: item
			});
		},

		_subReverse: function(request) {

			this._emitSelectionTargetLoading(request.selectionTarget);
			this._reverse(request);
		},

		_pubReversed: function(channel, item) {

			this._publish(channel, {
				success: true,
				body: item
			});
		},

		_subTotal: function(request) {

			if (!request || !request.selectionTarget) {
+0 −22
Original line number Diff line number Diff line
@@ -152,14 +152,6 @@ define([
				event: 'CLEAR_SELECTION',
				channel: this._buildChannel(selectorChannel, this.actions.CLEAR_SELECTION),
				callback: "_pubClearSelection"
			},{
				event: 'SELECT_ALL',
				channel: this._buildChannel(selectorChannel, this.actions.SELECT_ALL),
				callback: "_pubSelectAll"
			},{
				event: 'REVERSE',
				channel: this._buildChannel(selectorChannel, this.actions.REVERSE),
				callback: "_pubReverse"
			},{
				event: 'TOTAL',
				channel: this._buildChannel(selectorChannel, this.actions.TOTAL),
@@ -293,20 +285,6 @@ define([
			this._emitEvt("CLEAR_SELECTION");
		},

		_pubSelectAll: function(channel) {

			this._publish(channel, {
				selectionTarget: this._getSelectionTarget()
			});
		},

		_pubReverse: function(channel) {

			this._publish(channel, {
				selectionTarget: this._getSelectionTarget()
			});
		},

		_getSelectionTarget: function() {

			if (this.selectionTarget) {
+0 −8
Original line number Diff line number Diff line
@@ -22,10 +22,6 @@ define([
					GROUP_SELECTED: "groupSelected",
					CLEAR_SELECTION: "clearSelection",
					SELECTION_CLEARED: "selectionCleared",
					SELECT_ALL: "selectAll",
					SELECTED_ALL: "selectedAll",
					REVERSE: "reverse",
					REVERSED: "reversed",
					TOTAL: "total",
					SELECTION_TARGET_LOADING: "selectionTargetLoading",
					SELECTION_TARGET_LOADED: "selectionTargetLoaded"
@@ -40,10 +36,6 @@ define([
					GROUP_SELECTED: "groupSelected",
					CLEAR_SELECTION: "clearSelection",
					SELECTION_CLEARED: "selectionCleared",
					SELECT_ALL: "selectAll",
					SELECTED_ALL: "selectedAll",
					REVERSE: "reverse",
					REVERSED: "reversed",
					TOTAL: "total",
					TOTAL_AVAILABLE: "totalAvailable",
					SELECTION_TARGET_LOADING: "selectionTargetLoading",
+1 −3
Original line number Diff line number Diff line
@@ -18,9 +18,7 @@ define([

			return lang.mixin(this.inherited(arguments), {
				"_emitSave": {},
				"_groupSelected": {},
				"_selectAll": {},
				"_reverse": {}
				"_groupSelected": {}
			});
		}
	});
Loading