mirror of
https://github.com/OpenNebula/one.git
synced 2025-01-20 14:03:36 +03:00
parsing values to integer (#204)
This commit is contained in:
parent
4d59bebbe5
commit
d697ec5a9b
@ -64,7 +64,7 @@ define(function(require) {
|
||||
$(document).on("input", "input.uinput-slider-val", function(){
|
||||
var max = $("input[type=number]", $(this).closest('.uinput-slider-container')).attr('max');
|
||||
$("input[type=range]", $(this).closest('.uinput-slider-container')).val( this.value );
|
||||
if(this.value > max)
|
||||
if(parseInt(this.value) > parseInt(max))
|
||||
$("input[type=number]", $(this).closest('.uinput-slider-container')).val(max);
|
||||
});
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user