From e36bbce6d372099fb573c91a224f89ccc126ee72 Mon Sep 17 00:00:00 2001 From: grob Date: Mon, 13 Nov 2006 16:59:44 +0000 Subject: [PATCH] changed Html.dropDown(): allow property "class" for specifying css class names if the option parameters are specified as object (using "value" and "display" properties) --- helma/Html.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/helma/Html.js b/helma/Html.js index 3b6256e4..b92668db 100644 --- a/helma/Html.js +++ b/helma/Html.js @@ -8,10 +8,10 @@ * * Copyright 1998-2006 Helma Software. All Rights Reserved. * - * $RCSfile: helma.Html.js,v $ + * $RCSfile: Html.js,v $ * $Author: czv $ - * $Revision: 1.5 $ - * $Date: 2006/04/18 13:06:58 $ + * $Revision: 1.2 $ + * $Date: 2006/04/24 07:02:17 $ */ @@ -434,6 +434,9 @@ helma.Html = function() { } else if (options[i].value != null && options[i].display != null) { // option is an object attr.value = options[i].value; + if (options[i]["class"] != null) { + attr["class"] = options[i]["class"]; + } display = options[i].display; } else { // assume option is a string