Changeset 1511
- Timestamp:
- 08/12/07 01:06:35
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/deployment/webadmin/webapp/resources/default/default/default.xsl
r1510 r1511 1697 1697 </div> 1698 1698 1699 <input type="hidden" name="rdates" value="" id="bwRdatesField" /> 1699 1700 <!-- if there are no recurence dates, the following table will show --> 1700 1701 <table cellspacing="0" id="bwCurrentRdatesNone"> … … 1703 1704 </table> 1704 1705 1705 <!-- if there are no recurence dates, the following table will show -->1706 <!-- if there are recurrence dates, the following table will show --> 1706 1707 <table cellspacing="0" id="bwCurrentRdates"> 1707 1708 <tr> … … 1716 1717 </table> 1717 1718 1718 <!-- if there are no recurence dates, the following table will show --> 1719 <input type="hidden" name="exdates" value="" id="bwExdatesField" /> 1720 <!-- if there are no exception dates, the following table will show --> 1719 1721 <table cellspacing="0" id="bwCurrentExdatesNone"> 1720 1722 <tr><th>Exception Dates</th></tr> … … 1722 1724 </table> 1723 1725 1724 <!-- if there are no recurencedates, the following table will show -->1726 <!-- if there are exception dates, the following table will show --> 1725 1727 <table cellspacing="0" id="bwCurrentExdates"> 1726 1728 <tr> trunk/deployment/webuser/webapp/resources/demoskins/default/default/default.xsl
r1509 r1511 3178 3178 </div> 3179 3179 3180 <input type="hidden" name="rdates" value="" id="bwRdatesField" /> 3180 3181 <!-- if there are no recurrence dates, the following table will show --> 3181 3182 <table cellspacing="0" class="invisible" id="bwCurrentRdatesNone"> … … 3197 3198 </table> 3198 3199 3199 <!-- if there are no recurence dates, the following table will show --> 3200 <input type="hidden" name="exdates" value="" id="bwExdatesField" /> 3201 <!-- if there are no exception dates, the following table will show --> 3200 3202 <table cellspacing="0" class="invisible" id="bwCurrentExdatesNone"> 3201 3203 <tr><th>Exception Dates</th></tr> … … 3203 3205 </table> 3204 3206 3205 <!-- if there are no recurencedates, the following table will show -->3207 <!-- if there are exception dates, the following table will show --> 3206 3208 <table cellspacing="0" class="invisible" id="bwCurrentExdates"> 3207 3209 <tr> trunk/deployment/webuser/webapp/resources/demoskins/resources/bedeworkEventForm.js
r1509 r1511 64 64 * rdi: index of rdate fro delete 65 65 */ 66 this.toFormRow = function(varName, r eqPar, row, rdi) {66 this.toFormRow = function(varName, row, rdi) { 67 67 row.insertCell(0).appendChild(document.createTextNode(this.date)); 68 68 row.insertCell(1).appendChild(document.createTextNode(this.time)); 69 69 row.insertCell(2).appendChild(document.createTextNode(this.tzid)); 70 70 row.insertCell(3).innerHTML = "<a href=\"javascript:" + varName + ".deleteDate('" + 71 rdi + "')\">" + rdateDeleteStr + "</a>" + 72 "<input type='hidden' name='" + reqPar + 73 "' value='" + this.format() + "'/>"; 71 rdi + "')\">" + rdateDeleteStr + "</a>"; 74 72 } 75 73 … … 119 117 } 120 118 121 var bwRdates = new BwREXdates("bwRdates", "rdate", "bwCurrentRdates", "bwCurrentRdatesNone", 119 var bwRdates = new BwREXdates("bwRdates", "bwRdatesField", 120 "bwCurrentRdates", "bwCurrentRdatesNone", 122 121 "visible", "invisible", 2); 123 var bwExdates = new BwREXdates("bwExdates", "exdate", "bwCurrentExdates", "bwCurrentExdatesNone", 122 var bwExdates = new BwREXdates("bwExdates", "bwExdatesField", 123 "bwCurrentExdates", "bwCurrentExdatesNone", 124 124 "visible", "invisible", 2); 125 125 … … 127 127 * 128 128 * @param varName: NOT GOOD - name of object 129 * @param reqPar : request parameter we gernate (multi-valued)129 * @param reqParId: id of hidden field we update 130 130 * @param tableId: id of table we are manipulating 131 131 * @param noDatesId: some info to display when we have nothing … … 134 134 * @param numHeaderRows: Number of header rows in the table. 135 135 */ 136 function BwREXdates(varName, reqPar , tableId, noDatesId,136 function BwREXdates(varName, reqParId, tableId, noDatesId, 137 137 visibleClass, invisibleClass, numHeaderRows) { 138 138 var dates = new Array(); 139 139 140 140 this.varName = varName; 141 this.reqPar = reqPar;141 this.reqParId = reqParId; 142 142 this.tableId = tableId; 143 143 this.noDatesId = noDatesId; … … 199 199 // recreate the table rows 200 200 for (var j = 0; j < dates.length; j++) { 201 var cur Rdate = dates[j];201 var curDate = dates[j]; 202 202 var tr = rdTableBody.insertRow(j + numHeaderRows); 203 203 204 cur Rdate.toFormRow(varName, reqPar, tr, j);204 curDate.toFormRow(varName, tr, j); 205 205 } 206 206 … … 212 212 changeClass(noDatesId, invisibleClass); 213 213 } 214 215 /* Update the hidden field */ 216 217 var formAcl = document.getElementById(reqParId); 218 formAcl.value = this.format(); 219 214 220 } catch (e) { 215 221 alert(e); 216 222 } 223 } 224 225 this.format = function() { 226 var res = ""; 227 228 for (var j = 0; j < dates.length; j++) { 229 var curDate = dates[j]; 230 231 res += "DATE\t" + curDate.format(); 232 } 233 234 return res; 217 235 } 218 236 }
