[pve-devel] [PATCH manager] fix notes gear tool

Dominik Csapak d.csapak at proxmox.com
Fri May 25 17:27:41 CEST 2018


me was used before it was defined

Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
this is the first actual bug i found with jslint o.O
btw, seems someone does not use jslint before committing ;)
 www/manager6/panel/NotesView.js | 1 +
 1 file changed, 1 insertion(+)

diff --git a/www/manager6/panel/NotesView.js b/www/manager6/panel/NotesView.js
index 94408837..23f4b6e9 100644
--- a/www/manager6/panel/NotesView.js
+++ b/www/manager6/panel/NotesView.js
@@ -57,6 +57,7 @@ Ext.define('PVE.panel.NotesView', {
     tools: [{
 	type: 'gear',
 	handler: function() {
+	    var me = this.up('panel');
 	    me.run_editor();
 	}
     }],
-- 
2.11.0





More information about the pve-devel mailing list