From f53fa79512d1d4bf551e0adccff23365fbc50b27 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Fri, 30 Mar 2012 16:25:30 +0000 Subject: [PATCH] If a row is explicitly disabled, it's safe to just skip it --- etemplate/js/et2_widget_grid.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/etemplate/js/et2_widget_grid.js b/etemplate/js/et2_widget_grid.js index 337847111a..03350122af 100644 --- a/etemplate/js/et2_widget_grid.js +++ b/etemplate/js/et2_widget_grid.js @@ -360,7 +360,16 @@ var et2_grid = et2_DOMWidget.extend([et2_IDetachedDOM], { //this.getArrayMgr(name).perspectiveData.row = y; } - et2_filteredNodeIterator(node, readRowNode, this); + // If row disabled, just skip it + var disabled = false; + if(node.getAttribute("disabled") == "1") + { + disabled = true; + } + if(!disabled) + { + et2_filteredNodeIterator(node, readRowNode, this); + } } else {