mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-21 04:12:37 +09:00
parsing values to integer (#204)
This commit is contained in:
1 parent
4d59bebbe5
commit
d697ec5a9b
1 file changed
+1
-1
@@ -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);
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user