<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Clear commentDialog text between entering comments]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">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.</p>
<p dir="auto">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.</p>
<p dir="auto">Thanks</p>
<pre><code>
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();

</code></pre>
]]></description><link>https://forum.mango-os.com/topic/71/clear-commentdialog-text-between-entering-comments</link><generator>RSS for Node</generator><lastBuildDate>Mon, 20 Apr 2026 13:25:54 GMT</lastBuildDate><atom:link href="https://forum.mango-os.com/topic/71.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 21 Mar 2008 07:39:12 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Clear commentDialog text between entering comments on Fri, 21 Mar 2008 14:35:40 GMT]]></title><description><![CDATA[<p dir="auto">Hi Craig,</p>
<p dir="auto">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.</p>
]]></description><link>https://forum.mango-os.com/post/2170</link><guid isPermaLink="true">https://forum.mango-os.com/post/2170</guid><dc:creator><![CDATA[mlohbihler]]></dc:creator><pubDate>Fri, 21 Mar 2008 14:35:40 GMT</pubDate></item></channel></rss>