Skip to content

Commit d91468d

Browse files
committed
cleanup
1 parent ed92f95 commit d91468d

3 files changed

Lines changed: 5 additions & 10 deletions

File tree

ehr/resources/web/ehr/DataEntryUtils.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,6 @@ EHR.DataEntryUtils = new function(){
501501
}
502502

503503
meta.showTooltip = EHR.DataEntryUtils.shouldShowTooltips();
504-
505504
col.renderer = LABKEY.ext4.Util.getDefaultRenderer(col, meta, grid);
506505

507506
//HTML-encode the column header

ehr/resources/web/ehr/plugin/CellEditing.js

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ Ext4.define('EHR.grid.plugin.CellEditing', {
44
alias: 'plugin.ehr-cellediting',
55

66
ensureLookups: function(record, column, editor) {
7-
if (record.data[column.dataIndex] && editor?.field?.store) {
7+
if( (editor?.field?.xtype === 'labkey-combo' || editor?.field?.xtype === 'ehr-simplecombo')
8+
&& record.data[column.dataIndex] && editor?.field?.store) {
9+
810
const valid = editor.field.store.findExact("value", record.data[column.dataIndex]) !== -1
911

1012
if (!valid) {
@@ -22,11 +24,7 @@ Ext4.define('EHR.grid.plugin.CellEditing', {
2224

2325
getEditor: function(record, column) {
2426
const editor = this.callParent(arguments);
25-
26-
if( editor?.field?.xtype === 'labkey-combo' || editor?.field?.xtype === 'ehr-simplecombo') {
27-
this.ensureLookups(record, column, editor);
28-
}
29-
27+
this.ensureLookups(record, column, editor);
3028
return editor;
3129
}
3230
});

ehr/resources/web/ehr/plugin/ClinicalObservationsCellEditing.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,7 @@ Ext4.define('EHR.grid.plugin.ClinicalObservationsCellEditing', {
7171
// Keep upward pointer correct for each use - editors are shared between locking sides
7272
editor.editingPlugin = me;
7373

74-
if( editor?.field?.xtype === 'labkey-combo' || editor?.field?.xtype === 'ehr-simplecombo') {
75-
this.ensureLookups(record, column, editor);
76-
}
74+
this.ensureLookups(record, column, editor);
7775

7876
return editor;
7977
}

0 commit comments

Comments
 (0)