for this we need to overwrite the 'run_editor' function
of the ObjectGrid if we use a custom one
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
return value;
},
+ listeners: {
+ itemkeyup: function(view, record, item, index, e) {
+ if (e.getKey() === e.ENTER) {
+ this.run_editor();
+ }
+ }
+ },
+
initComponent : function() {
var me = this;
url: "/api2/json/nodes/" + me.nodename + "/dns",
cwidth1: 130,
interval: 1000,
+ run_editor: run_editor,
rows: {
search: { header: 'Search domain', required: true },
dns1: { header: gettext('DNS server') + " 1", required: true },
url: "/api2/json/nodes/" + me.nodename + "/time",
cwidth1: 150,
interval: 1000,
+ run_editor: run_editor,
rows: {
timezone: {
header: gettext('Time zone'),