From b1d4ec546c7d0114cf62ad96136d0360b6a97ed8 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Wed, 28 Mar 2012 19:21:40 +0000 Subject: [PATCH] Add widget's class to td for backward compatability --- etemplate/js/et2_widget_grid.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/etemplate/js/et2_widget_grid.js b/etemplate/js/et2_widget_grid.js index 232adfca22..337847111a 100644 --- a/etemplate/js/et2_widget_grid.js +++ b/etemplate/js/et2_widget_grid.js @@ -320,6 +320,12 @@ var et2_grid = et2_DOMWidget.extend([et2_IDetachedDOM], { cell.align = node.getAttribute("align"); } + // Apply widget's class to td, for backward compatability + if(node.getAttribute("class")) + { + cell.class += (cell.class ? " " : "") + node.getAttribute("class"); + } + // Create the element var widget = this.createElementFromNode(node, nodeName);