From bf4f1a7c37fd61fe320f1ca709bcfa9cb13b5d16 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Sun, 15 Aug 2010 07:39:36 +0000 Subject: [PATCH] Fix speed limit sliders initialization in Web UI --- src/webui/scripts/parametrics.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/webui/scripts/parametrics.js b/src/webui/scripts/parametrics.js index b6fc2e95e..690d382c6 100644 --- a/src/webui/scripts/parametrics.js +++ b/src/webui/scripts/parametrics.js @@ -30,6 +30,8 @@ MochaUI.extend({ var tmp = data.toInt(); if(tmp > 0) { maximum = tmp / 1024. + } else { + maximum = 0 } } // Get torrent upload limit @@ -115,6 +117,8 @@ MochaUI.extend({ var tmp = data.toInt(); if(tmp > 0) { maximum = tmp / 1024. + } else { + maximum = 0 } } // Get torrent download limit