From 070443f811db33d732098d9dafc899cce7de0f94 Mon Sep 17 00:00:00 2001 From: Damien Churchill Date: Mon, 19 Apr 2010 16:29:40 +0100 Subject: [PATCH] only use the fix for webkit browsers --- deluge/ui/web/js/ext-extensions/form/TriggerFieldFix.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/deluge/ui/web/js/ext-extensions/form/TriggerFieldFix.js b/deluge/ui/web/js/ext-extensions/form/TriggerFieldFix.js index e40b574c3..0d42ab89c 100644 --- a/deluge/ui/web/js/ext-extensions/form/TriggerFieldFix.js +++ b/deluge/ui/web/js/ext-extensions/form/TriggerFieldFix.js @@ -29,6 +29,8 @@ * this exception statement from your version. If you delete this exception * statement from all source files in the program, then also delete it here. */ + +if (Ext.isWebKit) { Ext.override(Ext.form.TriggerField, { onResize: function(w, h) { Ext.form.TriggerField.superclass.onResize.call(this, w, h); @@ -39,3 +41,4 @@ Ext.override(Ext.form.TriggerField, { this.wrap.setWidth(w); } }); +}