[Registry-dev] svn commit r10650 - in
trunk/registry/modules/webapps/src/main/webapp/admin: . js
svn at wso2.org
svn at wso2.org
Thu Dec 6 05:54:37 PST 2007
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">
More information about the Registry-dev
mailing list