From d89d4f7e38d417a50b4b7be01080112a34cfdabd Mon Sep 17 00:00:00 2001 From: Damien Churchill Date: Sun, 10 Aug 2008 22:32:07 +0000 Subject: [PATCH] fix the type setting --- deluge/ui/webui/templates/ajax/static/js/deluge.widgets.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/deluge/ui/webui/templates/ajax/static/js/deluge.widgets.js b/deluge/ui/webui/templates/ajax/static/js/deluge.widgets.js index dd36d2bfa..48605480f 100644 --- a/deluge/ui/webui/templates/ajax/static/js/deluge.widgets.js +++ b/deluge/ui/webui/templates/ajax/static/js/deluge.widgets.js @@ -774,11 +774,11 @@ Deluge.Widgets.GenericPreferences = new Class({ this.changed.each(function(value, key) { var type = $type(this.original[key]); if (type == 'number') { - changed[key] = value.toFloat(); + changed[key] = Number(value); } else if (type == 'string') { - changed[key] = value.toString(); + changed[key] = String(value); } else if (type == 'boolean') { - changed[key] = value.toBoolean(); + changed[key] = Boolean(value); } }, this); return changed;