Commit 14b6e8a8 authored by Pedro Eduardo Trujillo's avatar Pedro Eduardo Trujillo
Browse files

Muestra filas padre en listado jerárquico lazyload

parent bd3d715c
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -190,7 +190,6 @@ define([
		_addAfterData: function(response) {

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

		_parserIndexData: function(response) {
@@ -269,6 +268,9 @@ define([
			if (!rowInstance || !this._evaluateItem(item)) {
				return;
			} else if (item[this.leavesProperty]) {
				if (!this._pendingParentsToShow) {
					this._pendingParentsToShow = [];
				}
				this._pendingParentsToShow.push(idProperty);

				return;
+12 −0
Original line number Diff line number Diff line
@@ -178,6 +178,18 @@ define([

			this._pathGenerateParent = null;
			this._nodeParent = null;
		},

		_showRow: function(item) {

			var idProperty = item[this.idProperty],
				rowInstance = this._getRowInstance(idProperty);

			if (!rowInstance || !this._evaluateItem(item)) {
				return;
			}

			this._showInstanceRow(rowInstance, item, this.rowsContainerNode, false);
		}
	});
});