themes/base/webapp/base/js/cms/trumbowyg/trumbowyg.scipio_common.js
Function fromFtlStd
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
this.fromFtlStd = function(k, v, linkType, argDefs, ftlDir, initValues) {
Function buildSelectFieldHtml
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
this.buildSelectFieldHtml = function (fieldName, fieldValue, fieldLabel, attr, valueStrict, selectOptions) {
Avoid deeply nested control flow statements. Open
Open
if (endPos != -1) {
var strLit = str.substring(0, endPos + 1);
var strValue = this.unescapeStringLit(str.substring(rawStr ? 2 : 1, endPos));
dir.args[argName] = {value: strValue, strValue: strValue, strLit: strLit, rawStr: rawStr};
str = str.substring(endPos + 1);
Avoid deeply nested control flow statements. Open
Open
if (m) {
var strValue = m[1];
dir.args[argName] = {value: (strValue == 'true'), strValue: strValue, strLit: m[1]};
str = m[2] || '';
} else {
Consider simplifying this complex logical expression. Open
Open
if (opt.selected === true || (typeof fieldValue !== 'undefined' && fieldValue != null && ((opt.value || '') == (fieldValue || '')))) {
optHtml += ' selected="selected"';
valFound = true;
}
Consider simplifying this complex logical expression. Open
Open
if (opt.selected === true || (typeof field.value !== 'undefined' && field.value != null && ((opt.value || '') == (field.value || '')))) {
optHtml += ' selected="selected"';
valFound = true;
}
Function putFieldInitValues
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
this.putFieldInitValues = function(t, linkType, argDefs, ftlDir, initValues) {
Function buildInputFieldHtml
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
this.buildInputFieldHtml = function (fieldType, fieldName, fieldValue, fieldLabel, attr) {
Avoid too many return
statements within this function. Open
Open
return dir;
Avoid too many return
statements within this function. Open
Open
return -1;
Avoid too many return
statements within this function. Open
Open
return i;