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

Actualiza gateway de selección local

parent 84668b15
Loading
Loading
Loading
Loading
+12 −23
Original line number Diff line number Diff line
@@ -9,6 +9,7 @@ define([
	, _Store
	, Gateway
) {

	return declare([Gateway, _Store], {
		//	summary:
		//		Implementación de gateway para trabajar con selecciones locales.
@@ -28,15 +29,12 @@ define([
		_subSelect: function(request) {

			var items = request.items,
				target = request.selectionTarget;
				target = request.target;

			this._emitEvt('SELECT', {
				success: true,
				body: {
				ids: items,
				total: 0,
					selectionTarget: target
				}
				target: target
			});
		},

@@ -46,32 +44,23 @@ define([
				target = request.selectionTarget;

			this._emitEvt('DESELECT', {
				success: true,
				body: {
				ids: items,
				total: 0,
					selectionTarget: target
				}
				target: target
			});
		},

		_subClearSelection: function(request) {

			this._emitEvt('CLEAR_SELECTION', {
				success: true,
				body: {
					selectionTarget: request.selectionTarget
				}
				target: request.selectionTarget
			});
		},

		_subSelectAll: function(request) {

			this._emitEvt('SELECT_ALL', {
				success: true,
				body: {
					selectionTarget: request.selectionTarget
				}
				target: request.selectionTarget
			});
		}
	});