[Bedework-commit] bedework r3004 - in
trunk/deployment/webuser/webapp/resources/demoskins/themes/bedeworkTheme:
. javascript
svnadmin at bedework.org
svnadmin at bedework.org
Wed Oct 6 15:59:38 EDT 2010
Author: johnsa
Date: 2010-10-06 15:59:38 -0400 (Wed, 06 Oct 2010)
New Revision: 3004
Modified:
trunk/deployment/webuser/webapp/resources/demoskins/themes/bedeworkTheme/eventForm.xsl
trunk/deployment/webuser/webapp/resources/demoskins/themes/bedeworkTheme/javascript/bedeworkScheduling.js
Log:
user client: properly set categories on add/edit
Modified: trunk/deployment/webuser/webapp/resources/demoskins/themes/bedeworkTheme/eventForm.xsl
===================================================================
--- trunk/deployment/webuser/webapp/resources/demoskins/themes/bedeworkTheme/eventForm.xsl 2010-10-06 19:57:40 UTC (rev 3003)
+++ trunk/deployment/webuser/webapp/resources/demoskins/themes/bedeworkTheme/eventForm.xsl 2010-10-06 19:59:38 UTC (rev 3004)
@@ -680,19 +680,21 @@
<tr>
<td>
<xsl:for-each select="form/categories/all/category[position() <= ceiling($catCount div 2)]">
- <input type="checkbox" name="catUid"/>
+ <input type="checkbox" name="catUid">
<xsl:attribute name="value"><xsl:value-of select="uid"/></xsl:attribute>
- <xsl:if test="uid = form/categories/current//category/uid"><xsl:attribute name="checked">checked</xsl:attribute></xsl:if>
- <xsl:value-of select="value"/>
+ <xsl:if test="uid = ../../current//category/uid"><xsl:attribute name="checked">checked</xsl:attribute></xsl:if>
+ </input>
+ <xsl:value-of select="value"/>
<br/>
</xsl:for-each>
</td>
<td>
<xsl:for-each select="form/categories/all/category[position() > ceiling($catCount div 2)]">
- <input type="checkbox" name="catUid"/>
+ <input type="checkbox" name="catUid">
<xsl:attribute name="value"><xsl:value-of select="uid"/></xsl:attribute>
- <xsl:if test="uid = form/categories/current//category/uid"><xsl:attribute name="checked">checked</xsl:attribute></xsl:if>
- <xsl:value-of select="value"/>
+ <xsl:if test="uid = ../../current//category/uid"><xsl:attribute name="checked">checked</xsl:attribute></xsl:if>
+ </input>
+ <xsl:value-of select="value"/>
<br/>
</xsl:for-each>
</td>
Modified: trunk/deployment/webuser/webapp/resources/demoskins/themes/bedeworkTheme/javascript/bedeworkScheduling.js
===================================================================
--- trunk/deployment/webuser/webapp/resources/demoskins/themes/bedeworkTheme/javascript/bedeworkScheduling.js 2010-10-06 19:57:40 UTC (rev 3003)
+++ trunk/deployment/webuser/webapp/resources/demoskins/themes/bedeworkTheme/javascript/bedeworkScheduling.js 2010-10-06 19:59:38 UTC (rev 3004)
@@ -17,13 +17,14 @@
under the License.
*/
-/* ========================================================================
- This file builds a scheduling widget for the "meeting" tab of the
- add/edit event form used for adding and removing attendees, observing
- free/busy, and for picking available time in a free/busy grid.
- ========================================================================
-*/
+/** This file builds a scheduling widget for the "meeting" tab of the
+ * add/edit event form used for adding and removing attendees, observing
+ * free/busy, and for picking available time in a free/busy grid.
+ *
+ * @author Arlen Johnson johnsa - rpi.edu
+ */
+
// Constants and RFC-5445 values
// These should be put some place permanent
var bwAttendeeRoleChair = "CHAIR";
More information about the Bedework-commit
mailing list