partkeepr

fork of partkeepr
git clone https://git.e1e0.net/partkeepr.git
Log | Files | Refs | Submodules | README | LICENSE

commit f06b01724d03e3e3021ff11208b8519f441860f0
parent 55fd3cf9cc9ccd4a26e6c40bca228c088551fc6d
Author: Felicitus <felicitus@felicitus.org>
Date:   Sun, 13 May 2012 05:16:56 +0200

Added method to retrieve the decimal places, refers to #154

I'm not sure if "decimal places" is the correct term - if not correct, feel free to change it.

Diffstat:
Msrc/frontend/js/PartKeepr.js | 8++++++++
1 file changed, 8 insertions(+), 0 deletions(-)

diff --git a/src/frontend/js/PartKeepr.js b/src/frontend/js/PartKeepr.js @@ -490,6 +490,14 @@ Ext.application({ */ getUsername: function () { return this.username; + }, + /** + * Returns the number of decimal places + * + * @returns {int} The number of decimal places + */ + getDecimalPlaces: function () { + return this.getUserPreference("partkeepr.number.decimalplaces", 3); } });