[pve-devel] [PATCH pmg-gui 1/1] overwrite run_editor of base class

Dominik Csapak d.csapak at proxmox.com
Fri Apr 6 13:22:46 CEST 2018


so that every call lands in the custom run_editor

Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 js/ActionList.js   | 1 +
 js/MyNetworks.js   | 1 +
 js/ObjectGroup.js  | 1 +
 js/RelayDomains.js | 1 +
 js/Transport.js    | 1 +
 5 files changed, 5 insertions(+)

diff --git a/js/ActionList.js b/js/ActionList.js
index 213afb2..af5e2e3 100644
--- a/js/ActionList.js
+++ b/js/ActionList.js
@@ -121,6 +121,7 @@ Ext.define('PMG.ActionList', {
 	}
 
 	Ext.apply(me, {
+	    run_editor: run_editor,
 	    columns: [
 		{
 		    header: gettext('Name'),
diff --git a/js/MyNetworks.js b/js/MyNetworks.js
index 955b3fa..6ef0022 100644
--- a/js/MyNetworks.js
+++ b/js/MyNetworks.js
@@ -114,6 +114,7 @@ Ext.define('PMG.MyNetworks', {
 	Ext.apply(me, {
 	    store: store,
 	    tbar: tbar,
+	    run_editor: run_editor,
 	    viewConfig: {
 		trackOver: false
 	    },
diff --git a/js/ObjectGroup.js b/js/ObjectGroup.js
index 1e76ef3..0de4da3 100644
--- a/js/ObjectGroup.js
+++ b/js/ObjectGroup.js
@@ -238,6 +238,7 @@ Ext.define('PMG.ObjectGroup', {
 	Proxmox.Utils.monStoreErrors(me, me.store, true);
 
 	Ext.apply(me, {
+	    run_editor: run_editor,
 	    listeners: {
 		itemdblclick: run_editor,
 		activate: reload
diff --git a/js/RelayDomains.js b/js/RelayDomains.js
index 8945b2d..26560c1 100644
--- a/js/RelayDomains.js
+++ b/js/RelayDomains.js
@@ -114,6 +114,7 @@ Ext.define('PMG.RelayDomains', {
 	Ext.apply(me, {
 	    store: store,
 	    tbar: tbar,
+	    run_editor: run_editor,
 	    viewConfig: {
 		trackOver: false
 	    },
diff --git a/js/Transport.js b/js/Transport.js
index b5e20d8..f125835 100644
--- a/js/Transport.js
+++ b/js/Transport.js
@@ -133,6 +133,7 @@ Ext.define('PMG.Transport', {
 	Ext.apply(me, {
 	    store: store,
 	    tbar: tbar,
+	    run_editor: run_editor,
 	    viewConfig: {
 		trackOver: false
 	    },
-- 
2.11.0





More information about the pve-devel mailing list