Changeset 1670

Show
Ignore:
Timestamp:
12/12/07 17:55:50
Author:
johnsa
Message:

admin client: submit comment update

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/deployment/webadmin/webapp/resources/default/default/default.xsl

    r1669 r1670  
    944944    <xsl:if test="normalize-space(form/xproperties/xproperty[@name='X-BEDEWORK-SUBMIT-COMMENT']/value) != ''"> 
    945945      <script type="text/javascript"> 
    946         bwSubmitComment = new bwSubmitComment('<xsl:value-of select="form/xproperties/xproperty[@name='X-BEDEWORK-SUBMIT-COMMENT']/value"/>','bwSubmittedEventComment'); 
     946        bwSubmitComment = new bwSubmitComment('<xsl:value-of select="form/xproperties/xproperty[@name='X-BEDEWORK-SUBMIT-COMMENT']/value"/>'); 
    947947      </script> 
    948948 
     
    955955      </div> 
    956956      <script type="text/javascript"> 
    957         bwSubmitComment.display(); 
     957        bwSubmitComment.display('bwSubmittedEventComment'); 
    958958      </script> 
    959959    </xsl:if> 
  • trunk/deployment/webadmin/webapp/resources/resources/bedeworkEventForm.js

    r1669 r1670  
    241241/* An comment accompanying a submitted event 
    242242/* comment: the x-property string X-BEDEWORK-SUBMIT-COMMENT, tab delimited 
    243  * id: id of the div to be written to for display 
    244243 */ 
    245 function bwSubmitComment(comment,displayId) { 
     244function bwSubmitComment(comment) { 
    246245  var commentVals = comment.split('\t'); 
    247246  this.locationAddress = commentVals[0]; 
     
    270269  } 
    271270 
    272   this.display = function() { 
     271  this.display = function(displayId) { 
    273272    var showComment = document.getElementById(displayId); 
    274273    showComment.innerHTML = this.render();