From 5ec004b2ff2eddc0cc168747b879c456be5be56d Mon Sep 17 00:00:00 2001 From: Damien Churchill Date: Wed, 29 Jul 2009 08:55:24 +0000 Subject: [PATCH] use item.el.getValue() to compare the value when picking the radio in the radiogroup --- deluge/ui/web/js/ext-extensions-debug.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/deluge/ui/web/js/ext-extensions-debug.js b/deluge/ui/web/js/ext-extensions-debug.js index 70fea9738..a4f2026cb 100644 --- a/deluge/ui/web/js/ext-extensions-debug.js +++ b/deluge/ui/web/js/ext-extensions-debug.js @@ -777,7 +777,8 @@ Ext.override(Ext.form.RadioGroup, { setValue: function(v) { if (!this.items.each) return; this.items.each(function(item) { - item.setValue((item.originalValue == v)); + var checked = (item.el.getValue() == String(v)); + item.setValue(checked); }); } -}); +}); \ No newline at end of file