Allow users to select a data type with the keyboard only when creating a column in the subnode grid. Sanitise the list of fields shown.

This commit is contained in:
Murtuza Zabuawala
2016-07-15 10:12:23 +01:00
committed by Dave Page
parent fdcb9d2a57
commit 573abbe6ef
3 changed files with 112 additions and 16 deletions

View File

@@ -407,11 +407,13 @@
if (!this.$el.hasClass('editor'))
this.$el.addClass('editor');
this.$select.select2('focus');
this.$select.select2('open');
this.$select.on('blur', this.exitEditMode);
},
exitEditMode: function() {
this.$select.off('blur', this.exitEditMode);
this.$select.select2('close');
this.$el.removeClass('editor');
},
@@ -539,7 +541,7 @@
}
this.$el.empty();
Backgrid.SelectCell.prototype.remove.apply(this, arguments);
}
}
});
/**