Please Note This forum exists for community support for the Mango product family and the Radix IoT Platform. Although Radix IoT employees participate in this forum from time to time, there is no guarantee of a response to anything posted here, nor can Radix IoT, LLC guarantee the accuracy of any information expressed or conveyed. Specific project questions from customers with active support contracts are asked to send requests to

Radix IoT Website Mango 3 Documentation Website Mango 4 Documentation Website

Clear commentDialog text between entering comments

  • Hi,

    I have found that if I add more than one comment on the active alarms page the text from the previous comment is still in the text box.

    I have included a patch as I don't seem to be able to attach a file. Please let me know if it is in a suitable format and if this is the proper medium for submitting patches so I'll know for next time.


    RCS file: /cvs/mango/app/war/WEB-INF/jsp/include/userComment.jsp,v
    retrieving revision 1.2
    diff -u -r1.2 userComment.jsp
    --- app/war/WEB-INF/jsp/include/userComment.jsp	18 Jan 2008 23:07:59 -0000	1.2
    +++ app/war/WEB-INF/jsp/include/userComment.jsp	21 Mar 2008 07:14:08 -0000
    @@ -32,6 +32,7 @@
       function openCommentDialog(typeId, referenceId) {
           commentTypeId = typeId;
           commentReferenceId = referenceId;
    +      $set("commentText", "");

  • Hi Craig,

    That should work fine. Note that the "$("commentText").select();" line is supposed to select the text such that typing anything would overwrite the previous comment, but it would still be there in case it was useful. That line and the following line (focus) should probably be reversed.