mirror of
https://github.com/Mailu/Mailu.git
synced 2025-03-03 14:52:36 +02:00
Merge #2036
2036: round display of range inputs to 2 decimals r=mergify[bot] a=ghostwheel42 ## What type of PR? small fix ## What does this PR do? rounds display of range inputs to 2 decimals ### Related issue(s) - small fix to #1966 ## Prerequisites Before we can consider review and merge, please make sure the following list is done and checked. If an entry in not applicable, you can check it or remove it from the list. - [X] In case of feature or enhancement: documentation updated accordingly - [X] Unless it's docs or a minor change: add [changelog](https://mailu.io/master/contributors/workflow.html#changelog) entry file. Co-authored-by: Alexander Graf <ghostwheel42@users.noreply.github.com>
This commit is contained in:
commit
5e212ea46d
@ -43,7 +43,7 @@ $('document').ready(function() {
|
||||
var infinity = $(this).data('infinity');
|
||||
var step = $(this).attr('step');
|
||||
$(this).on('input', function() {
|
||||
value_element.text((infinity && this.value == 0) ? '∞' : this.value/step);
|
||||
value_element.text((infinity && this.value == 0) ? '∞' : (this.value/step).toFixed(2));
|
||||
}).trigger('input');
|
||||
}
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user