Skip to content

Commit

Permalink
Fixed issue #10394: Thousand Separator appears to be broken - causes …
Browse files Browse the repository at this point in the history
…other issues (numerical input)
  • Loading branch information
olleharstedt committed Feb 19, 2016
1 parent 808ed5f commit 65e6bbb
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions scripts/numerical_input.js
Expand Up @@ -14,7 +14,7 @@ $(document).ready(function () {

var selector = '.thousandsseparator input.numeric, input.integeronly, .numberonly input[type=text]';
$(selector).unbind('keydown');
$('input.numeric, .numberonly input[type=text]').priceFormat({
$('.thousandsSeparator input.numeric').priceFormat({
'centsSeparator' : centsSep,
'thousandsSeparator' : thousandsSep,
'centsLimit' : 2,
Expand All @@ -26,10 +26,9 @@ $(document).ready(function () {
'thousandsSeparator' : thousandsSep,
'centsLimit' : 0,
'prefix' : '',
'allowNegative' : true
'allowNegative' : true
});


$(selector).bind('keyup', custom_checkconditions);
// Initialize LEM tabs first.
LEMsetTabIndexes();
Expand Down Expand Up @@ -131,4 +130,4 @@ function ls_represent_all(e)
$(this).attr('value', ls_represent($(this).attr('value')));

});
}
}

0 comments on commit 65e6bbb

Please sign in to comment.