Removed commented code

This commit is contained in:
dbroqua 2018-07-31 09:54:32 +02:00
parent 14270e9dc6
commit 3d861bab52

View File

@ -360,7 +360,6 @@ class Results extends Component {
this.setState({ results });
}
convertRapport(value) {
if (value) {
const _rapport = value.split('/');
@ -483,61 +482,3 @@ class Results extends Component {
}
export default Results;
//
// function number_format(number, decimals, dec_point, thousands_sep) {
// number = (`${number}`).replace(/[^0-9+\-Ee.]/g, '');
// let n = !isFinite(+number) ? 0 : +number,
// prec = !isFinite(+decimals) ? 0 : Math.abs(decimals),
// sep = (typeof thousands_sep === 'undefined') ? ',' : thousands_sep,
// dec = (typeof dec_point === 'undefined') ? '.' : dec_point,
// s = '',
// toFixedFix = function (n, prec) {
// const k = Math.pow(10, prec);
// return `${(Math.round(n * k) / k).toFixed(prec)}`;
// };
//
// s = (prec ? toFixedFix(n, prec) : `${Math.round(n)}`).split('.');
//
// if (s[0].length > 3) {
// s[0] = s[0].replace(/\B(?=(?:\d{3})+(?!\d))/g, sep);
// }
//
// if ((s[1] || '').length < prec) {
// s[1] = s[1] || '';
// s[1] += new Array(prec - s[1].length + 1).join('0');
// }
//
// return s.join(dec);
// }
//
// function formValidation() {
// let result = true;
//
// $('.bvcalculotor :input.required').each(function () {
// let isOk = false;
// if ($(this).hasClass('divide')) {
// const _rapport = $(this).val().split('/');
// if ($(this).val() == '' || $(this).val() == '-' || Number($(this).val()) || _rapport.length == 2 && Number(_rapport[0]) / Number(_rapport[1]) > 0) {
// isOk = true;
// }
// } else if (Number($(this).val()) > 0) {
// isOk = true;
// }
//
// if (isOk === false) {
// $(this).parent().addClass('has-error');
// result = false;
// } else {
// $(this).parent().removeClass('has-error');
// }
// });
//
// return result;
// }
//
//
// $().ready(() => {
// $('.bvcalculator').submit((e) => {
//
// });
// });