Show correct data type in data table cell editor (#2440)
* Show correct data type in data table cell editor * Ensure date cell type is shown in cell editor
This commit is contained in:
parent
55ea09d21c
commit
b6f6904af4
@ -544,6 +544,10 @@ DataTableCellUI.prototype._startEdit = function(elmt) {
|
||||
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));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user