mirror of
https://git.proxmox.com/git/proxmox-widget-toolkit
synced 2025-05-21 16:05:40 +00:00
Revert "add grid/SelectFeature.js"
This reverts commit e58445b3a4
.
This is no longer required, because we can simply set:
viewConfig: {
enableTextSelection: true
},
This commit is contained in:
parent
e58445b3a4
commit
ca31548b04
1
Makefile
1
Makefile
@ -31,7 +31,6 @@ JSSRC= \
|
||||
form/RRDTypeSelector.js \
|
||||
button/Button.js \
|
||||
button/HelpButton.js \
|
||||
grid/SelectFeature.js \
|
||||
grid/ObjectGrid.js \
|
||||
grid/PendingObjectGrid.js \
|
||||
panel/InputPanel.js \
|
||||
|
@ -1,36 +0,0 @@
|
||||
Ext.override(Ext.view.Table, {
|
||||
afterRender: function() {
|
||||
var me = this;
|
||||
|
||||
me.callParent();
|
||||
// EXT5DEBUG
|
||||
// me.mon(me.el, {
|
||||
// scroll: me.fireBodyScroll,
|
||||
// scope: me
|
||||
// });
|
||||
// if (!me.featuresMC ||
|
||||
// (me.featuresMC.findIndex('ftype', 'selectable') < 0)) {
|
||||
// me.el.unselectable();
|
||||
// }
|
||||
//
|
||||
// me.attachEventsForFeatures();
|
||||
}
|
||||
});
|
||||
|
||||
Ext.define('Proxmox.grid.SelectFeature', {
|
||||
extend: 'Ext.grid.feature.Feature',
|
||||
alias: 'feature.selectable',
|
||||
|
||||
mutateMetaRowTpl: function(metaRowTpl) {
|
||||
var tpl, i,
|
||||
ln = metaRowTpl.length;
|
||||
|
||||
for (i = 0; i < ln; i++) {
|
||||
tpl = metaRowTpl[i];
|
||||
tpl = tpl.replace(/x-grid-row/, 'x-grid-row x-selectable');
|
||||
tpl = tpl.replace(/x-grid-cell-inner x-unselectable/g, 'x-grid-cell-inner');
|
||||
tpl = tpl.replace(/unselectable="on"/g, '');
|
||||
metaRowTpl[i] = tpl;
|
||||
}
|
||||
}
|
||||
});
|
Loading…
Reference in New Issue
Block a user