<?xml version="1.0" standalone="no"?>
<!DOCTYPE swatml SYSTEM "http://swat.silverorange.com/swatml1.dtd">
<swatml>
	<widget class="SwatForm" id="my_form">

		<widget class="SwatFormField">
			<property name="title">Complex Color Entry</property>
			<widget class="SwatColorEntry" id="color_entry" />
		</widget>

		<widget class="SwatFormField">
			<property name="title">Simple Color Entry</property>
			<widget class="SwatSimpleColorEntry" id="simple_color_entry">
				<property name="value">eed680</property>
			</widget>
		</widget>

		<!-- make the simple color entry do something interesting -->
		<widget class="SwatContentBlock">
			<property name="content"><![CDATA[<script type="text/javascript">
			function handleColorChange(type, color)
			{
				var navbar = document.getElementById('navbar');
				navbar.style.background = color;
			}

			simple_color_entry_obj.color_change_event.subscribe(
				handleColorChange);
			</script>]]></property>
			<property name="content_type">text/xml</property>
		</widget>

	</widget>
</swatml>

<?xml version="1.0" standalone="no"?>
<!DOCTYPE swatml SYSTEM "http://swat.silverorange.com/swatml1.dtd">
<swatml>
	<widget class="SwatForm" id="my_form">

		<widget class="SwatFormField">
			<property name="title">Complex Color Entry</property>
			<widget class="SwatColorEntry" id="color_entry" />
		</widget>

		<widget class="SwatFormField">
			<property name="title">Simple Color Entry</property>
			<widget class="SwatSimpleColorEntry" id="simple_color_entry">
				<property name="value">eed680</property>
			</widget>
		</widget>

		<!-- make the simple color entry do something interesting -->
		<widget class="SwatContentBlock">
			<property name="content"><![CDATA[<script type="text/javascript">
			function handleColorChange(type, color)
			{
				var navbar = document.getElementById('navbar');
				navbar.style.background = color;
			}

			simple_color_entry_obj.colorChangedEvent.subscribe(
				handleColorChange);
			</script>]]></property>
			<property name="content_type">text/xml</property>
		</widget>

	</widget>
</swatml>

Fix simple color entry event name.
Fix simple color entry event name.

svn commit r16235
