İlk Adım olarak : disc-inventoryhud'un yedeğini alınız, daha sonra disc-inventoryhud\html\js\inventory.js giriyorsunuz ve Aşağıdaki kodu buluyorsunuz :
Kod:
$('#count').on('keyup blur', function (e) {
if ((e.which == 8 || e.which == undefined || e.which == 0)) {
e.preventDefault();
}
if ($(this).val() == '') {
$(this).val('0');
} else {
$(this).val(parseInt($(this).val()))
}
});
Yukarıdaki Kodu Aşağıdaki Kod ile değiştiriyoruz :
Kod:
$('#count').on('keyup blur', function (e) {
if ((e.which == 8 || e.which == undefined || e.which == 0)) {
e.preventDefault();
}
if ($(this).val() == '') {
$(this).val('0');
} else {
$(this).val(parseInt($(this).val()))
}
if ($(this).val() < 0) {
$(this).val('1');
} else {
$(this).val(parseInt($(this).val()))
}
});
Sorun Çözülmüş Oluyor.