mirror of
https://git.proxmox.com/git/proxmox-widget-toolkit
synced 2025-05-05 23:06:36 +00:00
node/APT: whitespace cleanup
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
6895e13f39
commit
f12e1aba6e
18
node/APT.js
18
node/APT.js
@ -55,8 +55,8 @@ Ext.define('Proxmox.node.APT', {
|
|||||||
model: 'apt-pkglist',
|
model: 'apt-pkglist',
|
||||||
groupField: 'Origin',
|
groupField: 'Origin',
|
||||||
proxy: {
|
proxy: {
|
||||||
type: 'proxmox',
|
type: 'proxmox',
|
||||||
url: "/api2/json/nodes/" + me.nodename + "/apt/update"
|
url: "/api2/json/nodes/" + me.nodename + "/apt/update"
|
||||||
},
|
},
|
||||||
sorters: [
|
sorters: [
|
||||||
{
|
{
|
||||||
@ -73,15 +73,15 @@ Ext.define('Proxmox.node.APT', {
|
|||||||
|
|
||||||
var rowBodyFeature = Ext.create('Ext.grid.feature.RowBody', {
|
var rowBodyFeature = Ext.create('Ext.grid.feature.RowBody', {
|
||||||
getAdditionalData: function (data, rowIndex, record, orig) {
|
getAdditionalData: function (data, rowIndex, record, orig) {
|
||||||
var headerCt = this.view.headerCt;
|
var headerCt = this.view.headerCt;
|
||||||
var colspan = headerCt.getColumnCount();
|
var colspan = headerCt.getColumnCount();
|
||||||
return {
|
return {
|
||||||
rowBody: '<div style="padding: 1em">' +
|
rowBody: '<div style="padding: 1em">' +
|
||||||
Ext.String.htmlEncode(data.Description) +
|
Ext.String.htmlEncode(data.Description) +
|
||||||
'</div>',
|
'</div>',
|
||||||
rowBodyCls: me.full_description ? '' : Ext.baseCSSPrefix + 'grid-row-body-hidden',
|
rowBodyCls: me.full_description ? '' : Ext.baseCSSPrefix + 'grid-row-body-hidden',
|
||||||
rowBodyColspan: colspan
|
rowBodyColspan: colspan
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -114,7 +114,7 @@ Ext.define('Proxmox.node.APT', {
|
|||||||
|
|
||||||
var update_btn = new Ext.Button({
|
var update_btn = new Ext.Button({
|
||||||
text: gettext('Refresh'),
|
text: gettext('Refresh'),
|
||||||
handler: function(){
|
handler: function() {
|
||||||
Proxmox.Utils.checked_command(function() { apt_command('update'); });
|
Proxmox.Utils.checked_command(function() { apt_command('update'); });
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user