Commit b307850e authored by CarlosGC1989's avatar CarlosGC1989
Browse files

Arregla error en refresh del listado

parent d39ee424
Loading
Loading
Loading
Loading
+10 −2
Original line number Diff line number Diff line
@@ -118,7 +118,8 @@ define([
				channel: this.getChannel("CLEARED")
			},{
				event: 'REFRESH_COMPLETE',
				channel: this.getChannel("REFRESHED")
				channel: this.getChannel("REFRESHED"),
				callback: "_pubRefreshed"
			},{
				event: 'DATA_ADDED',
				channel: this.getChannel("DATA_ADDED")
@@ -161,10 +162,17 @@ define([
			return this.domNode;
		},

		_pubRefreshed: function(channel) {

			this._publish(channel, {
				total: Object.keys(this._rows).length
			});
		},

		_subRefresh: function(res) {

			if (res && res.initData && this._initData) {
				this._addData(lang.clone(this._initData));
				this._dataAvailable(lang.clone(this._initData));
			}
		},

+1 −2
Original line number Diff line number Diff line
@@ -182,8 +182,6 @@ define([

		_addData: function(response) {

			this._pendingParentsToShow = [];

			this._clearData();

			this._proccesNewData(response);
@@ -192,6 +190,7 @@ define([
		_addAfterData: function(response) {

			this._showPendingParents();
			//this._pendingParentsToShow = [];
		},

		_parserIndexData: function(response) {