1
0
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:
juanmont 2017-03-03 10:58:42 +01:00 committed by Tino Vázquez
parent 4d59bebbe5
commit d697ec5a9b

View File

@ -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);
});