LSP: make input type int return numbers instead of strings for .getval()
This commit is contained in:
parent
000d7afc73
commit
fcc61a4b21
2 changed files with 5 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue