Fixed problem with space in names dyanforms bug:6415

This commit is contained in:
AlvArO
2011-03-22 11:47:38 -04:00
parent 44683e73a0
commit 2e4452a53a

View File

@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<dynaForm
name="dynaforms_Edit"
type="xmlform"
@@ -50,6 +50,7 @@
<JS type="javascript">
<![CDATA[
getField('DYN_TITLE').form.onsubmit = function() {return false;};
checkDynaformSource();
@@ -77,6 +78,11 @@ getField('DYN_TITLE').form.onsubmit = function() {return false;};
hideRow('DYN_TYPE');
}*/
}
leimnud.event.add(getField('DYN_TITLE'), 'blur', function()
{
String.prototype.trim = function() { return this.replace(/^\s+|\s+$/g, ""); };
document.getElementById('form[DYN_TITLE]').value = document.getElementById('form[DYN_TITLE]').value.trim();
});
leimnud.event.add(document.getElementById('form[ADD_TABLE]'), 'change', setPMTableDynaformTitle);
function setPMTableDynaformTitle(){