From 0144611b9d6499d236e839508d47d605e363f07e Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Sun, 15 Aug 2010 07:41:30 +0000 Subject: [PATCH] BUGFIX: Fix speed limit sliders initialization in Web UI --- Changelog | 1 + src/webui/scripts/parametrics.js | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/Changelog b/Changelog index 2eeafd21e..a1923d894 100644 --- a/Changelog +++ b/Changelog @@ -3,6 +3,7 @@ - BUGFIX: Fix about dialog layout - BUGFIX: Remember previously selected paths in torrent creation dialog - BUGFIX: Added missing right-click menu icon in Web UI + - BUGFIX: Fix speed limit sliders initialization in Web UI * Tue Jul 27 2010 - Christophe Dumez - v2.3.0 - FEATURE: Simplified torrent root folder renaming/truncating (< v2.3.0 is no longer forward compatible) 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