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.Setup');
|
||||
|
||||
// TODO: implement gettext
|
||||
function gettext(buf) { return buf; }
|
||||
|
||||
if (!Ext.isFunction(gettext)) {
|
||||
function gettext(buf) { return buf; }
|
||||
}
|
||||
|
||||
if (!Ext.isDefined(Proxmox.Setup.auth_cookie_name)) {
|
||||
throw "Proxmox library not initialized";
|
||||
|
Loading…
x
Reference in New Issue
Block a user