From fd6dc000d353f3220993e6b04673f417b9cf6e90 Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Thu, 17 Mar 2011 11:22:24 +0100 Subject: [PATCH] fixed typo --- htdocs/frontend/javascripts/options.js | 2 +- htdocs/frontend/javascripts/wui.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/htdocs/frontend/javascripts/options.js b/htdocs/frontend/javascripts/options.js index ee0d9a3..a68f77b 100644 --- a/htdocs/frontend/javascripts/options.js +++ b/htdocs/frontend/javascripts/options.js @@ -29,7 +29,7 @@ vz.options = { language: 'de', backendUrl: '../backend.php', // TODO default backend, store backend urls in cookies tuples: 300, - precission: 2, // TODO update from backend capabilities? + precision: 2, // TODO update from backend capabilities? render: 'lines', refresh: false, defaultInterval: 24*60*60*1000, // 1 day diff --git a/htdocs/frontend/javascripts/wui.js b/htdocs/frontend/javascripts/wui.js index 674fa82..96e257e 100644 --- a/htdocs/frontend/javascripts/wui.js +++ b/htdocs/frontend/javascripts/wui.js @@ -333,16 +333,16 @@ vz.wui.handleControls = function () { }; /** - * Rounding precission + * Rounding precision * * Math.round rounds to whole numbers * to round to one decimal (e.g. 15.2) we multiply by 10, * round and reverse the multiplication again - * therefore "vz.options.precission" needs + * therefore "vz.options.precision" needs * to be set to 1 (for 1 decimal) in that case */ vz.wui.formatNumber = function(number) { - return Math.round(number*Math.pow(10, vz.options.precission))/Math.pow(10, vz.options.precission); + return Math.round(number*Math.pow(10, vz.options.precision))/Math.pow(10, vz.options.precision); } vz.wui.updateHeadline = function() {