]> git.proxmox.com Git - proxmox-widget-toolkit.git/commitdiff
remove gettext definition in Utils.js
authorDominik Csapak <d.csapak@proxmox.com>
Tue, 6 Mar 2018 08:06:28 +0000 (09:06 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Thu, 8 Mar 2018 10:37:32 +0000 (11:37 +0100)
this should not be here, rather where we include the language files
(like in pve), because this is not ecma conform and behaves very
different in different browsers (e.g. safari ignores the if check
completely and simply uses that function definition)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Utils.js

index a8d7b6f70c81fc1ea2155c2012a93b2a4bc0729b..1fd63348e07ec0e13aad4fecc2286b48ef673eed 100644 (file)
--- a/Utils.js
+++ b/Utils.js
@@ -1,10 +1,6 @@
 Ext.ns('Proxmox');
 Ext.ns('Proxmox.Setup');
 
-if (!Ext.isFunction(gettext)) {
-    function gettext(buf) { return buf; }
-}
-
 if (!Ext.isDefined(Proxmox.Setup.auth_cookie_name)) {
     throw "Proxmox library not initialized";
 }