[4603] trunk/htdocs/system/classes/formui.php: Add the name of the FormUI template being used to the list of CSS classes output for the control .

0 views
Skip to first unread message

svn-N...@habariproject.org

unread,
Nov 21, 2010, 4:44:16 PM11/21/10
to habar...@googlegroups.com
Revision
4603
Author
chrismeller
Date
2010-11-21 21:44:13 +0000 (Sun, 21 Nov 2010)

Log Message

Add the name of the FormUI template being used to the list of CSS classes output for the control. This allows you to easily style elements for a single template type, rather than all.

Modified Paths

Diff

Modified: trunk/htdocs/system/classes/formui.php (4602 => 4603)


--- trunk/htdocs/system/classes/formui.php	2010-11-21 03:05:29 UTC (rev 4602)
+++ trunk/htdocs/system/classes/formui.php	2010-11-21 21:44:13 UTC (rev 4603)
@@ -1292,6 +1292,10 @@
 				break;
 			case 'template':
 				$this->template = $value;
+				
+				// add the template to the list of css classes - keyed so subsequent changes overwrite it, rather than append
+				$this->class['template'] = $value;
+				
 				break;
 			case 'raw':
 				$this->raw = $value;
Reply all
Reply to author
Forward
0 new messages