[Registry-dev] svn commit r15773 -
trunk/registry/modules/webapps/src/main/webapp/admin/js
svn at wso2.org
svn at wso2.org
Thu Apr 17 22:06:19 PDT 2008
Author: chanaka
Date: Thu Apr 17 22:06:13 2008
New Revision: 15773
Log:
linux add resource validation problem fixed
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 Thu Apr 17 22:06:13 2008
@@ -444,11 +444,13 @@
new Ajax.Updater('resourceProperties', '/wso2registry/system/removeProperty', { method: 'post', parameters: {resourcePath: resourcePath, propertyName: propertyName} });
}
-function addDependency(){
- var resourcePath = document.getElementById('resourcePath').value;
- var dependency = document.getElementById('dependency').value;
- document.getElementById('dependency').value="";
- new Ajax.Updater('dependencyDiv','/wso2registry/system/addDependencies', {method:'post',parameters:{resourcePath:resourcePath,dependency:dependency}}) ;
+function addAssociation(){
+ var resourcePath = $('resourcePath').value;
+ var type = $('type').value;
+ var associationPaths = $('associationPaths').value;
+ $('type').value="";
+ $('associationPaths').value="";
+ new Ajax.Updater('associationDiv','/wso2registry/system/addAssociation', {method:'post',parameters:{resourcePath:resourcePath,type:type,associationPaths:associationPaths}}) ;
}
function renameResource(parentPath, oldResourcePath, resourceEditDivID) {
More information about the Registry-dev
mailing list