[Carbon-dev] svn commit r31182 - in trunk/carbon-components/registry/org.wso2.carbon.registry.ui.properties/src/main/resources/web/properties: . js
chanaka at wso2.com
chanaka at wso2.com
Fri Feb 20 00:17:24 PST 2009
Author: chanaka
Date: Fri Feb 20 00:17:23 2009
New Revision: 31182
URL: http://wso2.org/svn/browse/wso2?view=rev&revision=31182
Log:
applied patch to trunk from branch for fix https://wso2.org/jira/browse/CARBON-3259
Modified:
trunk/carbon-components/registry/org.wso2.carbon.registry.ui.properties/src/main/resources/web/properties/js/properties.js
trunk/carbon-components/registry/org.wso2.carbon.registry.ui.properties/src/main/resources/web/properties/properties-ajaxprocessor.jsp
Modified: trunk/carbon-components/registry/org.wso2.carbon.registry.ui.properties/src/main/resources/web/properties/js/properties.js
URL: http://wso2.org/svn/browse/wso2/trunk/carbon-components/registry/org.wso2.carbon.registry.ui.properties/src/main/resources/web/properties/js/properties.js?rev=31182&r1=31181&r2=31182&view=diff
==============================================================================
--- trunk/carbon-components/registry/org.wso2.carbon.registry.ui.properties/src/main/resources/web/properties/js/properties.js (original)
+++ trunk/carbon-components/registry/org.wso2.carbon.registry.ui.properties/src/main/resources/web/properties/js/properties.js Fri Feb 20 00:17:23 2009
@@ -4,6 +4,8 @@
var reason="";
reason +=validateEmpty(document.getElementById('propName'), "Property Name");
reason +=validateEmpty(document.getElementById('propValue'), "Property Value");
+ reason +=validateForInput(document.getElementById('propName'), "Property Name");
+ reason +=validateForInput(document.getElementById('propValue'), "Property Value");
var resourcePath = $('propRPath').value;
var propertyName = $('propName').value;
var propertyValue = $('propValue').value;
@@ -26,6 +28,7 @@
}else{
cleanField($('propName'));
cleanField($('propValue'));
+ alert(propertyName + "--" + propertyValue );
new Ajax.Request('../properties/properties-ajaxprocessor.jsp',
{
method:'post',
@@ -53,8 +56,10 @@
var oldPropertyName = document.getElementById('oldPropName_'+rowid).value;
var propertyName = document.getElementById('propName_'+rowid);
reason += validateEmpty(propertyName,'Property Name');
+ reason += validateForInput(propertyName,'Property Name');
var propertyValue = document.getElementById('propValue_'+rowid);
reason += validateEmpty(propertyValue,'Property Value');
+ reason += validateForInput(propertyValue,'Property Value');
if(reason==""){
new Ajax.Request('../properties/properties-ajaxprocessor.jsp',
{
Modified: trunk/carbon-components/registry/org.wso2.carbon.registry.ui.properties/src/main/resources/web/properties/properties-ajaxprocessor.jsp
URL: http://wso2.org/svn/browse/wso2/trunk/carbon-components/registry/org.wso2.carbon.registry.ui.properties/src/main/resources/web/properties/properties-ajaxprocessor.jsp?rev=31182&r1=31181&r2=31182&view=diff
==============================================================================
--- trunk/carbon-components/registry/org.wso2.carbon.registry.ui.properties/src/main/resources/web/properties/properties-ajaxprocessor.jsp (original)
+++ trunk/carbon-components/registry/org.wso2.carbon.registry.ui.properties/src/main/resources/web/properties/properties-ajaxprocessor.jsp Fri Feb 20 00:17:23 2009
@@ -101,7 +101,7 @@
tmpName = tmpName.replaceAll(">",">");
String tmpValue = value.replaceAll("<","<");
- tmpName = tmpValue.replaceAll(">",">");
+ tmpValue = tmpValue.replaceAll(">",">");
%>
<td><span class="__propName"><%=tmpName%></span><span class="__propNameRef"
style="display:none;"><%=name%></span>
More information about the Carbon-dev
mailing list