Changeset 1824
- Timestamp:
- 04/14/08 16:23:36
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/deployment/webadmin/webapp/resources/default/default/default.xsl
r1821 r1824 1063 1063 <xsl:for-each select="form/xproperties/node()"> 1064 1064 <xsl:variable name="xprop"><xsl:value-of select="name()"/><xsl:for-each select="parameters/node()">;<xsl:value-of select="name()"/>=<xsl:value-of select="node()"/></xsl:for-each>:<xsl:value-of select="values/text"/></xsl:variable> 1065 <input type="hidden" name="xproperty" value="{$xprop}" />1065 <input type="hidden" name="xproperty" value="{$xprop}" id="name()"/> 1066 1066 </xsl:for-each> 1067 1067 … … 2075 2075 </td> 2076 2076 <td> 2077 <input type="hidden" name="xproperty" id="X-BEDEWORK-IMAGE"/>2078 2077 <input type="text" name="xBwImageHolder" value="" class="edit" size="30"> 2079 <xsl:if test="form/xproperties/node()[name()='X-BEDEWORK-IMAGE ']">2080 <xsl:attribute name="value"><xsl:value-of select="form/xproperties/node()[name()='X-BEDEWORK-IMAGE ']/values/text"/></xsl:attribute>2078 <xsl:if test="form/xproperties/node()[name()='X-BEDEWORK-IMAGEURL']"> 2079 <xsl:attribute name="value"><xsl:value-of select="form/xproperties/node()[name()='X-BEDEWORK-IMAGEURL']/values/text"/></xsl:attribute> 2081 2080 </xsl:if> 2082 2081 </input> … … 2183 2182 <td> 2184 2183 <xsl:for-each select="form/categories/preferred/category[position() <= ceiling($catCount div 2)]"> 2185 < xsl:sort select="keyword" order="ascending"/>2184 <!-- <xsl:sort select="keyword" order="ascending"/> --> 2186 2185 <input type="checkbox" name="categoryKey"> 2187 2186 <xsl:attribute name="value"><xsl:value-of select="keyword"/></xsl:attribute> … … 2195 2194 <td> 2196 2195 <xsl:for-each select="form/categories/preferred/category[position() > ceiling($catCount div 2)]"> 2197 < xsl:sort select="keyword" order="ascending"/>2196 <!-- <xsl:sort select="keyword" order="ascending"/> --> 2198 2197 <input type="checkbox" name="categoryKey"> 2199 2198 <xsl:attribute name="value"><xsl:value-of select="keyword"/></xsl:attribute> trunk/deployment/webadmin/webapp/resources/resources/bedeworkEventForm.js
r1818 r1824 40 40 41 41 // ======================================================================== 42 // ======================================================================== 43 // Bedework specific x-properties 44 45 var bwXpropertyImageUrl = "X-BEDEWORK-IMAGEURL"; 46 var bwXparamDescription = "X-BEDEWORK-PARAM-DESCRIPTION"; 47 var bwXparamWidth = "X-BEDEWORK-PARAM-WIDTH"; 48 var bwXparamHeight = "X-BEDEWORK-PARAM-HEIGHT"; 49 50 // ======================================================================== 42 51 // rdate functions 43 52 // ======================================================================== 44 53 45 54 /* An rdate 46 /* date: String: internal date55 * date: String: internal date 47 56 * time: String 48 * tzid timezone id or null57 * tzid: timezone id or null 49 58 */ 50 59 function BwREXdate(date, time, allDay, floating, utc, tzid) { … … 240 249 241 250 /* A comment accompanying a submitted event. 242 /* comment: the x-property string X-BEDEWORK-SUBMIT-COMMENT, tab delimited251 * comment: the x-property string X-BEDEWORK-SUBMIT-COMMENT, tab delimited 243 252 */ 244 253 function bwSubmitComment(comment) { … … 341 350 function setBedeworkXProperties(formObj) { 342 351 // set up specific Bedework X-Properties 352 353 // X-BEDEWORK-IMAGEURL and its parameters: 343 354 if (formObj["xBwImageHolder"].value != '') { 344 var xBwImage = document.getElementById("X-BEDEWORK-IMAGE"); 345 // the fake description parameter is temporary 346 xBwImage.value = "X-BEDEWORK-IMAGE;X-BEDEWORK-PARAM-DESCRIPTION=anImage:" + formObj["xBwImageHolder"].value; 355 var xprop = bwXpropertyImageUrl + ";" + bwXparamDescription + "=bogusDesc" + ":" + formObj["xBwImageHolder"].value; 356 var xBwImage = document.getElementById(bwXpropertyImageUrl); 357 if (xBwImage == null) { 358 var xBwImageNew = formObj.appendChild(document.createElement("input")); 359 xBwImageNew.type = "hidden"; 360 xBwImageNew.name = "xproperty"; 361 xBwImageNew.id = bwXpropertyImageUrl; 362 xBwImageNew.value = xprop; 363 } else { 364 xBwImage.value = xprop; 365 } 347 366 } 348 367 }
