LSP: make input type int return numbers instead of strings for .getval()

This commit is contained in:
Cat 2020-05-08 13:32:45 +02:00 committed by Thulinma
parent 000d7afc73
commit fcc61a4b21
2 changed files with 5 additions and 2 deletions

View file

@ -6953,6 +6953,9 @@ $.fn.getval = function(){
if ((opts) && ('type' in opts)) {
var type = opts.type;
switch (type) { //exceptions only
case 'int':
if (val != "") { val = Number(val); }
break;
case 'span':
val = $(this).html();
break;