Loading public/javascript/redmic/modules/gateway/LocalSelectorGatewayImpl.js +12 −23 Original line number Diff line number Diff line Loading @@ -9,6 +9,7 @@ define([ , _Store , Gateway ) { return declare([Gateway, _Store], { // summary: // Implementación de gateway para trabajar con selecciones locales. Loading @@ -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 }); }, Loading @@ -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 }); } }); Loading Loading
public/javascript/redmic/modules/gateway/LocalSelectorGatewayImpl.js +12 −23 Original line number Diff line number Diff line Loading @@ -9,6 +9,7 @@ define([ , _Store , Gateway ) { return declare([Gateway, _Store], { // summary: // Implementación de gateway para trabajar con selecciones locales. Loading @@ -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 }); }, Loading @@ -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 }); } }); Loading