[-] BO : Fix bug #PSCFV-10932, ranges input disabled on load

This commit is contained in:
gRoussac
2013-11-07 15:11:30 +01:00
parent 91cde1ab3a
commit 7cc351e83d

View File

@@ -393,7 +393,7 @@ function showFees()
//enable only if zone is active
tr = $(this).parent('tr');
validate = $('tr.fees_all td:eq('+$(this).index()+')').hasClass('validated');
if ($(tr).index() > 2 && $(tr).find('td:eq(1) input').attr('checked') && validate || !$(tr).hasClass('range_sup') || !$(tr).hasClass('range_inf'))
if ($(tr).index() > 2 && $(tr).find('td:eq(1) input').prop('checked') && (validate || !$(tr).hasClass('range_sup') || !$(tr).hasClass('range_inf')))
$(this).find('input:text').removeAttr('disabled');
$(this).find('input:text, button').css('background-color', '').css('border-color', '');