From 88dd91fe2ad184e04a3c86fea7a7bc19c0ae8cd8 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Mon, 4 Nov 2013 11:54:51 +0000 Subject: [PATCH] put class attribute on menupopup instead of menulist, as that is where et2 looks for it --- etemplate/inc/class.xul_io.inc.php | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/etemplate/inc/class.xul_io.inc.php b/etemplate/inc/class.xul_io.inc.php index cb66ad3904..99564ed0de 100644 --- a/etemplate/inc/class.xul_io.inc.php +++ b/etemplate/inc/class.xul_io.inc.php @@ -261,10 +261,18 @@ class xul_io case 'menulist': // id,options belongs to the 'menupopup' child if ($cell['span']) { - $this->set_attributes($widget,'span,class',$cell['span']); - unset($cell['span']); + list($span, $class) = explode(',', $cell['span']); + if (!empty($span)) $this->set_attributes($widget, 'span', $span); + if (!empty($class)) + { + $cell['span'] = ','.$class; + } + else + { + unset($cell['span']); + } } - // fall-trought + // fall-through case 'listbox': if ($cell['type'] != 'select') // one of the sub-types {