Author: chathura
Date: Thu Dec  6 05:54:32 2007
New Revision: 10650

Log:


Minor fix to the in-place description editing.



Modified:
   trunk/registry/modules/webapps/src/main/webapp/admin/js/common.js
   trunk/registry/modules/webapps/src/main/webapp/admin/registry-resources.jsp

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   Thu Dec 
 6 05:54:32 2007
@@ -177,7 +177,7 @@
 
         var desc = edit_div.value;
         new Ajax.Updater('descView', '/wso2registry/system/setDescription', { 
method: 'post', parameters: {description: desc} });
-        edit_div.value = normal_div.innerHTML;
+        edit_div.textContent = normal_div.innerHTML;
     }
 
     if(normal_div.style.display=='block'){

Modified: 
trunk/registry/modules/webapps/src/main/webapp/admin/registry-resources.jsp
==============================================================================
--- trunk/registry/modules/webapps/src/main/webapp/admin/registry-resources.jsp 
(original)
+++ trunk/registry/modules/webapps/src/main/webapp/admin/registry-resources.jsp 
Thu Dec  6 05:54:32 2007
@@ -79,7 +79,7 @@
 
 <script type="text/javascript" xml:space="preserve">
     new Ajax.Updater('descView', '/wso2registry/system/getDescription', { 
method: 'get', parameters: {resourcePath: '<%=details.getPath()%>'} });
-    document.getElementById("descEdit").textContent = 
document.getElementById("descView").innerHTML;
+    document.getElementById('descEdit').textContent = 
document.getElementById('descView').innerHTML;
 </script>
 
 <div class="resource-footer">

_______________________________________________
Registry-dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/registry-dev

Reply via email to