mirror of
https://github.com/outbackdingo/Mailu.git
synced 2026-01-27 10:19:35 +00:00
round display of range inputs to 2 decimals
This commit is contained in:
@@ -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');
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user