mirror of
https://github.com/Ekokumppanit/Lentolaskuri.git
synced 2026-02-28 16:52:42 +00:00
Initial commit
This commit is contained in:
10
app/scripts/libs/handlebar_helpers.js
Normal file
10
app/scripts/libs/handlebar_helpers.js
Normal file
@@ -0,0 +1,10 @@
|
||||
'use strict';
|
||||
|
||||
define([
|
||||
'handlebars'
|
||||
], function (Handlebars) {
|
||||
Handlebars.registerHelper('displayFloat', function (num, precision) {
|
||||
precision = precision;
|
||||
return ''+(num.toFixed(precision)).replace('.', ',');
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user