diff --git a/app/assets/javascripts/samples/sample_datatable.js.erb b/app/assets/javascripts/samples/sample_datatable.js.erb index f1d6a2200..ef7ff9398 100644 --- a/app/assets/javascripts/samples/sample_datatable.js.erb +++ b/app/assets/javascripts/samples/sample_datatable.js.erb @@ -936,6 +936,14 @@ function changeToEditMode() { var visLi = (visible) ? '' : 'col-invisible'; var editClass = (editable) ? '' : 'disabled'; var delClass = (deletable) ? '' : 'disabled'; + + var thederName; + if ($(el).find('.modal-tooltiptext').length > 0) { + thederName = $(el).find('.modal-tooltiptext').text(); + } else { + thederName = el.innerText; + } + var html = '