Merged in bugfix/FBI-623 (pull request #6042)

FBI-623

Approved-by: Rodrigo Quelca <rockoinfo@yahoo.com>
Approved-by: Julio Cesar Laura Avendaño <contact@julio-laura.com>
This commit is contained in:
dheeyi william
2017-09-15 17:25:42 +00:00
committed by Julio Cesar Laura Avendaño

View File

@@ -40,12 +40,9 @@ var supportedProcessTypes = {
fn = fn.replace(/\s/g, "_");
fn = fn.replace(/\-/g, "_");
fn = fn + "DesignerGridRowDblClick";
// Todo We should remove eval functions as they are NSFW
eval("var flag = typeof(" + fn + ") == \"function\";");
if (flag) {
eval(fn + "(rowSelected.data);");
fn = window[fn];
if (typeof fn === "function") {
fn(rowSelected.data);
} else {
disabledProcessTypeMessage();
}