• Recent
    • Tags
    • Popular
    • Register
    • Login

    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 support@radixiot.com.

    Radix IoT Website Mango 3 Documentation Website Mango 4 Documentation Website Mango 5 Documentation Website

    Clear commentDialog text between entering comments

    Development general discussion
    2
    3
    2.2k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C
      craig
      last edited by

      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.

      Thanks

      
      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", "");
             dojo.widget.byId("CommentDialog").show();
             $("commentText").select();
             $("commentText").focus();
      
      
      1 Reply Last reply Reply Quote 0
      • M
        mlohbihler
        last edited by

        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.

        Best regards,
        Matthew

        1 Reply Last reply Reply Quote 0
        • First post
          Last post