Display comment of table data

This commit is contained in:
Lee moon soo 2016-11-15 11:27:12 -08:00
parent 621c527f27
commit 2d8d6ff510
2 changed files with 4 additions and 2 deletions

View file

@ -21,8 +21,8 @@ limitations under the License.
<div id="{{paragraph.id}}_comment"
class="text"
ng-if="getResultType()=='TABLE' && paragraph.result.comment"
ng-bind-html="paragraph.result.comment">
ng-if="getResultType()=='TABLE' && tableDataComment"
ng-bind-html="tableDataComment">
</div>
<div id="{{paragraph.id}}_text"

View file

@ -200,6 +200,7 @@
tableData = new TableData();
tableData.loadParagraphResult($scope.paragraph.result);
$scope.tableDataColumns = tableData.columns;
$scope.tableDataComment = tableData.comment;
$scope.setGraphMode($scope.getGraphMode(), false, false);
} else if ($scope.getResultType() === 'HTML') {
$scope.renderHtml();
@ -1691,6 +1692,7 @@
tableData = new TableData();
tableData.loadParagraphResult($scope.paragraph.result);
$scope.tableDataColumns = tableData.columns;
$scope.tableDataComment = tableData.comment;
clearUnknownColsFromGraphOption();
selectDefaultColsForGraphOption();
}