mirror of
https://git.proxmox.com/git/proxmox-widget-toolkit
synced 2025-08-10 16:33:01 +00:00
only define gettext if not already defined
This commit is contained in:
parent
f6f0066aff
commit
0ee4c725d3
6
Utils.js
6
Utils.js
@ -1,9 +1,9 @@
|
|||||||
Ext.ns('Proxmox');
|
Ext.ns('Proxmox');
|
||||||
Ext.ns('Proxmox.Setup');
|
Ext.ns('Proxmox.Setup');
|
||||||
|
|
||||||
// TODO: implement gettext
|
if (!Ext.isFunction(gettext)) {
|
||||||
function gettext(buf) { return buf; }
|
function gettext(buf) { return buf; }
|
||||||
|
}
|
||||||
|
|
||||||
if (!Ext.isDefined(Proxmox.Setup.auth_cookie_name)) {
|
if (!Ext.isDefined(Proxmox.Setup.auth_cookie_name)) {
|
||||||
throw "Proxmox library not initialized";
|
throw "Proxmox library not initialized";
|
||||||
|
Loading…
Reference in New Issue
Block a user