|
|
@ -47,8 +47,7 @@ |
|
|
|
var getInitContent = function (params, initParams, align) { |
|
|
|
var getInitContent = function (params, initParams, align) { |
|
|
|
var editorService = BI.Services.getService("bi.service.design.chart.common.editor"); |
|
|
|
var editorService = BI.Services.getService("bi.service.design.chart.common.editor"); |
|
|
|
var paramGroup = params.split("|"); |
|
|
|
var paramGroup = params.split("|"); |
|
|
|
|
|
|
|
var content = ""; |
|
|
|
content = ""; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for (var i = 0, len = paramGroup.length; i < len; i++) { |
|
|
|
for (var i = 0, len = paramGroup.length; i < len; i++) { |
|
|
|
var [key, value] = paramGroup[i].split(":"); |
|
|
|
var [key, value] = paramGroup[i].split(":"); |
|
|
@ -58,6 +57,10 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (BI.endWith(content, '<br></p>')) { |
|
|
|
|
|
|
|
content = content.slice(0, -8) + '</p>'; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return content; |
|
|
|
return content; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|