[pve-devel] [PATCH pve-manager 1/3] ext6migrate: remove our in house checkcolumn

Emmanuel Kasper e.kasper at proxmox.com
Thu Jan 28 14:42:41 CET 2016


This component is now available in the framework and works properly
( tested with FirewallRules.js who was the only one using it)
---
 www/manager6/grid/CheckColumn.js | 38 --------------------------------------
 1 file changed, 38 deletions(-)
 delete mode 100644 www/manager6/grid/CheckColumn.js

diff --git a/www/manager6/grid/CheckColumn.js b/www/manager6/grid/CheckColumn.js
deleted file mode 100644
index b57aca7..0000000
--- a/www/manager6/grid/CheckColumn.js
+++ /dev/null
@@ -1,38 +0,0 @@
-
-// partly copied from extjs/examples/ux/CheckColumn.js
-
-Ext.define('PVE.CheckColumn', {
-    extend: 'Ext.grid.column.Column',
-    alias: 'widget.checkcolumn',
-
-    constructor: function(cfg) {
-	this.renderer = function(value){
-            var cssPrefix = Ext.baseCSSPrefix,
-            cls = [cssPrefix + 'grid-checkheader'];
-
-            if (value) {
-		cls.push(cssPrefix + 'grid-checkheader-checked');
-            }
-            return '<div class="' + cls.join(' ') + '"> </div>';
-	};
-
-	this.addEvents('checkchange');
-
-        this.callParent(arguments);
-    },
-
-    processEvent: function(type, view, cell, recordIndex, cellIndex, e) {
-        if (type == 'mousedown') {
-            var record = view.panel.store.getAt(recordIndex),
-                dataIndex = this.dataIndex,
-                checked = !record.get(dataIndex);
-            record.set(dataIndex, checked);
-            this.fireEvent('checkchange', this, record, checked);
-            return false;
-        } else {
-            return this.callParent(arguments);
-        }
-    }
-
-});
-
-- 
2.1.4





More information about the pve-devel mailing list