mirror of
https://git.proxmox.com/git/proxmox-widget-toolkit
synced 2025-05-21 23:13:58 +00:00
Utils: fix jslint errors
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
9367da29d2
commit
c5aaa502d3
5
Utils.js
5
Utils.js
@ -497,15 +497,16 @@ Ext.define('Proxmox.Utils', { utilities: {
|
|||||||
|
|
||||||
format_task_description: function(type, id) {
|
format_task_description: function(type, id) {
|
||||||
var farray = Proxmox.Utils.task_desc_table[type];
|
var farray = Proxmox.Utils.task_desc_table[type];
|
||||||
|
var text;
|
||||||
if (!farray) {
|
if (!farray) {
|
||||||
var text = type;
|
text = type;
|
||||||
if (id) {
|
if (id) {
|
||||||
type += ' ' + id;
|
type += ' ' + id;
|
||||||
}
|
}
|
||||||
return text;
|
return text;
|
||||||
}
|
}
|
||||||
var prefix = farray[0];
|
var prefix = farray[0];
|
||||||
var text = farray[1];
|
text = farray[1];
|
||||||
if (prefix) {
|
if (prefix) {
|
||||||
return prefix + ' ' + id + ' - ' + text;
|
return prefix + ' ' + id + ' - ' + text;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user