BUG 9570 Grid Editor... properties allow to change width, link.. SOLVED
- The values were not necessary. - Was validated for use of each type.
This commit is contained in:
@@ -78,6 +78,12 @@
|
||||
// @param node element or node
|
||||
// @param tag tag of the class
|
||||
|
||||
if(document.getElementById("form[DYN_TYPE]").value=="grid"){
|
||||
hideRowById('WIDTH');
|
||||
hideRowById('NEXTSTEPSAVE');
|
||||
hideRowById('PRINTDYNAFORM');
|
||||
}
|
||||
|
||||
function getElementsByClassNameCrossBrowser(searchClass,node,tag) {
|
||||
|
||||
var classElements = new Array();
|
||||
@@ -109,6 +115,9 @@ leimnud.event.add(getField('DYN_TYPE'), 'change', function() {
|
||||
validateGridConversion(proUid,dynUid);
|
||||
} else {
|
||||
changeToolbar("xmlform");
|
||||
showRowById('WIDTH');
|
||||
showRowById('NEXTSTEPSAVE');
|
||||
showRowById('PRINTDYNAFORM');
|
||||
}
|
||||
});
|
||||
|
||||
@@ -132,12 +141,13 @@ function validateGridConversion(proUid,dynUid){
|
||||
var response = oRPC.xmlhttp.responseText;
|
||||
if (response=="ok"){
|
||||
changeToolbar("grid");
|
||||
|
||||
hideRowById('WIDTH');
|
||||
hideRowById('NEXTSTEPSAVE');
|
||||
hideRowById('PRINTDYNAFORM');
|
||||
} else {
|
||||
setDropdownSelection("form[DYN_TYPE]" , "xmlform");
|
||||
msgBox("Grid forms can not contain the following fields: <br>" + response,"alert");
|
||||
return false;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user