]> git.proxmox.com Git - pve-manager.git/commitdiff
mobile ui: implement dummy message box and scrip loader
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Sun, 28 May 2023 16:37:37 +0000 (18:37 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Sun, 28 May 2023 16:39:04 +0000 (18:39 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
www/mobile/Toolkit.js

index fb2690101f0c7f7fd6096b1457b9c292d6ed8deb..49647ced46b3ce9b9506394c09812e3e35db4621 100644 (file)
@@ -6,3 +6,10 @@ Ext.Ajax.setDisableCaching(false);
 
 // do not send '_dc' parameter
 Ext.Ajax.disableCaching = false;
+
+Ext.MessageBox = Ext.Msg = {
+    alert: (title, message) => console.warn(title, message),
+    show: ({title, message}) => console.warn(title, message),
+};
+
+Ext.Loader.injectScriptElement = (url) => console.warn(`surpressed loading ${url}`)