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 node element or node
|
||||||
// @param tag tag of the class
|
// @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) {
|
function getElementsByClassNameCrossBrowser(searchClass,node,tag) {
|
||||||
|
|
||||||
var classElements = new Array();
|
var classElements = new Array();
|
||||||
@@ -109,6 +115,9 @@ leimnud.event.add(getField('DYN_TYPE'), 'change', function() {
|
|||||||
validateGridConversion(proUid,dynUid);
|
validateGridConversion(proUid,dynUid);
|
||||||
} else {
|
} else {
|
||||||
changeToolbar("xmlform");
|
changeToolbar("xmlform");
|
||||||
|
showRowById('WIDTH');
|
||||||
|
showRowById('NEXTSTEPSAVE');
|
||||||
|
showRowById('PRINTDYNAFORM');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -131,18 +140,19 @@ function validateGridConversion(proUid,dynUid){
|
|||||||
oRPC.callback = function(oRPC) {
|
oRPC.callback = function(oRPC) {
|
||||||
var response = oRPC.xmlhttp.responseText;
|
var response = oRPC.xmlhttp.responseText;
|
||||||
if (response=="ok"){
|
if (response=="ok"){
|
||||||
changeToolbar("grid");
|
changeToolbar("grid");
|
||||||
|
hideRowById('WIDTH');
|
||||||
|
hideRowById('NEXTSTEPSAVE');
|
||||||
|
hideRowById('PRINTDYNAFORM');
|
||||||
} else {
|
} else {
|
||||||
setDropdownSelection("form[DYN_TYPE]" , "xmlform");
|
setDropdownSelection("form[DYN_TYPE]" , "xmlform");
|
||||||
msgBox("Grid forms can not contain the following fields: <br>" + response,"alert");
|
msgBox("Grid forms can not contain the following fields: <br>" + response,"alert");
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}.extend(this);
|
}.extend(this);
|
||||||
isTrue = oRPC.make();
|
isTrue = oRPC.make();
|
||||||
return isTrue;
|
return isTrue;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user