mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-22 18:50:08 +03:00
parsing values to integer (#204)
(cherry picked from commit d697ec5a9b47fed282a418756494c7dc8a291f18)
This commit is contained in:
parent
18ac74076a
commit
1fdf5127b7
@ -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