Skip to content

Commit

Permalink
[#372][FIX] Fixed issue of JSOn rendering in descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
whikernel committed Jan 16, 2024
1 parent 8563f78 commit 7d3adf8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source/app/static/assets/js/iris/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,11 @@ function ellipsis_field( data, cutoff, wordbreak ) {

function ret_obj_dt_description(data) {
let anchor = $('<span>');
let dataContent = typeof data === 'object' ? JSON.stringify(data) : data;
anchor.attr('data-toggle', 'popover')
.attr('data-trigger', 'hover')
.attr('title', 'Description')
.attr('data-content', data)
.attr('data-content', dataContent)
.attr('href', '#')
.css('cursor', 'pointer')
.text(ellipsis_field_raw(data, 64));
Expand Down

0 comments on commit 7d3adf8

Please sign in to comment.