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

Arregla paginación en doble listado de edición

parent 73c37b98
Loading
Loading
Loading
Loading
+0 −8
Original line number Diff line number Diff line
@@ -83,9 +83,6 @@ define([
			},{
				channel : this.getChannel("DESELECTED"),
				callback: "_subDeselected"
			},{
				channel : this.getChannel("SELECTED_ALL"),
				callback: "_subSelectedAll"
			});
		},

@@ -148,11 +145,6 @@ define([
		_subSelectionCleared: function() {

			this._localSelectionCleared.apply(this, arguments);
		},

		_subSelectedAll: function() {

			this._localSelectionSelectedAll.apply(this, arguments);
		}
	});
});
+14 −2
Original line number Diff line number Diff line
@@ -36,6 +36,7 @@ define([
				idProperty: "localId",
				idPropertySerialize: "id",
				_totalSelected: 0,
				_pageSize: 10,

				targetBrowserRight: "browserRight",

@@ -54,14 +55,24 @@ define([

		_setMainConfigurations: function() {

			this.filterConfig = this._merge([{
				initQuery: {
					size: this._pageSize
				}
			}, this.filterConfig || {}]);

			this.browserLeftConfig = this._merge([{
				idProperty: this.idPropertySerialize,
				browserConfig: {
					target: this.target,
					bars: [{
						instance: Pagination
					}]
						instance: Pagination,
						config: {
							pageSizeOptions: [this._pageSize],
							rowPerPage: this._pageSize
						}
					}]
				},
			}, this.browserLeftConfig || {}], {
				arrayMergingStrategy: 'concatenate'
			});
@@ -80,6 +91,7 @@ define([

		_setQueryChannelInModules: function() {

			this.browserLeftConfig.browserConfig.queryChannel = this.queryChannel;
			this.textSearchConfig.queryChannel = this.queryChannel;
		},