diff --git a/main/webapp/modules/core/scripts/views/data-table/cell-ui.js b/main/webapp/modules/core/scripts/views/data-table/cell-ui.js index 7911587eb..7f3e9a1fe 100644 --- a/main/webapp/modules/core/scripts/views/data-table/cell-ui.js +++ b/main/webapp/modules/core/scripts/views/data-table/cell-ui.js @@ -543,7 +543,11 @@ DataTableCellUI.prototype._startEdit = function(elmt) { elmts.or_views_ctrlEnter.html($.i18n('core-views/ctrl-enter')); elmts.cancelButton.html($.i18n('core-buttons/cancel')); elmts.or_views_esc.html($.i18n('core-buttons/esc')); - + + var cellDataType = typeof originalContent === "string" ? "text" : typeof originalContent; + cellDataType = ("t" in this._cell && this._cell.t != null) ? this._cell.t : cellDataType; + elmts.typeSelect.val(cellDataType); + MenuSystem.showMenu(menu, function(){}); MenuSystem.positionMenuLeftRight(menu, $(this._td));