BindUI user experience

This commit is contained in:
j0be 2017-01-30 18:05:06 -05:00 committed by GitHub
parent 56f239c081
commit 21bc5073d8

View file

@ -217,9 +217,10 @@ var pdApp = {
$(this).attr('class','gt-toggle hidden ' + ($(this).hasClass('greater') ? 'less' : 'greater'));
});
$('.num-only').change(function() {
$('.num-only').blur(function() {
$(this).val($(this).val().replace(/[^\d-]/g,''));
}).keypress(function() {$(this).change(); });
$(this).change();
});
},
},
helpers: {