Fix disabled grid rows still being created.

While not ideal (prevents modification / un-disabling after), this prevents some problems with doubled IDs
This commit is contained in:
Nathan Gray 2013-06-24 20:50:37 +00:00
parent bcbc42135d
commit 80ae80098e

View File

@ -343,7 +343,10 @@ var et2_grid = et2_DOMWidget.extend([et2_IDetachedDOM, et2_IAligned],
}
// Create the element
var widget = this.createElementFromNode(node, nodeName);
if(!cell.disabled)
{
var widget = this.createElementFromNode(node, nodeName);
}
// Fill all cells the widget is spanning
for (var i = 0; i < span && x < cells[y].length; i++, x++)