From 312310e0f2d803002cd526ee440fd20693796a50 Mon Sep 17 00:00:00 2001 From: Dominik Csapak Date: Thu, 11 Jul 2019 14:10:30 +0200 Subject: [PATCH] override Ext.Components 'validIdRe' to include '@' we use itemIds with '@' already in the ceph dashboard, and in non-debug modeit works (as expected) but throws an error while using ext-all-debug.js so override it to include the '@' the regex was in place because in html4 the 'id' tag could only consist letters ofthe mentioned regex, this was lifted in html5 though[0] 0: https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/id Signed-off-by: Dominik Csapak --- Toolkit.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Toolkit.js b/Toolkit.js index abdeb64..6956a8e 100644 --- a/Toolkit.js +++ b/Toolkit.js @@ -439,6 +439,12 @@ Ext.define(null, { }); +// add '@' to the valid id +Ext.define('Proxmox.validIdReOverride', { + override: 'Ext.Component', + validIdRe: /^[a-z_][a-z0-9\-_\@]*$/i, +}); + // force alert boxes to be rendered with an Error Icon // since Ext.Msg is an object and not a prototype, we need to override it // after the framework has been initiated -- 2.39.2