Author: glen
Date: Wed Jan 23 20:48:56 2008
New Revision: 12793
Log:
Clear comment box after 'add' is clicked.
Modified:
trunk/registry/modules/webapps/src/main/webapp/admin/js/common.js
Modified: trunk/registry/modules/webapps/src/main/webapp/admin/js/common.js
==============================================================================
--- trunk/registry/modules/webapps/src/main/webapp/admin/js/common.js
(original)
+++ trunk/registry/modules/webapps/src/main/webapp/admin/js/common.js Wed Jan
23 20:48:56 2008
@@ -172,7 +172,9 @@
function addComment(resourcePath) {
- var comment = document.getElementById('comment').value;
+ var commentElement = document.getElementById('comment');
+ var comment = commentElement.value;
+ commentElement.value = '';
new Ajax.Updater('commentList', '/wso2registry/system/addComment', {
method: 'post', parameters: {comment: comment, resourcePath: resourcePath} });
}
_______________________________________________
Registry-dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/registry-dev