From aa5dbcc32f2c9b246f48423adbd9bc6281545bb5 Mon Sep 17 00:00:00 2001 From: Dominik Csapak Date: Mon, 14 Mar 2016 16:22:33 +0100 Subject: [PATCH] ext6migrate: remove unecessary hacks this removes the two overrides for extjs4 Signed-off-by: Dominik Csapak --- www/manager6/Toolkit.js | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/www/manager6/Toolkit.js b/www/manager6/Toolkit.js index ff59a55a..0976fb17 100644 --- a/www/manager6/Toolkit.js +++ b/www/manager6/Toolkit.js @@ -97,21 +97,6 @@ Ext.apply(Ext.form.field.VTypes, { pveMailText: gettext('This field should be an e-mail address in the format "user@example.com"'), }); -// we dont want that a displayfield set the form dirty flag! -Ext.override(Ext.form.field.Display, { - isDirty: function() { return false; } -}); - -// hack: ExtJS does not display the correct value if we -// call setValue while the store is loading, so we need -// to call it again after loading -Ext.override(Ext.form.field.ComboBox, { - onLoad: function() { - this.setValue(this.value, false); - this.callOverridden(arguments); - } -}); - // ExtJs 5-6 has an issue with caching // see https://www.sencha.com/forum/showthread.php?308989 Ext.define('PVE.UnderlayPool', {