Lines 1613-1622
Link Here
|
1613 |
itm = $(this).text(); |
1613 |
itm = $(this).text(); |
1614 |
itm = itm.replace(/^\s*|\s*$/g,''); |
1614 |
itm = itm.replace(/^\s*|\s*$/g,''); |
1615 |
var current_column = $("#edit_row td:eq("+i+")"); |
1615 |
var current_column = $("#edit_row td:eq("+i+")"); |
|
|
1616 |
var may_have_priority = (0 == $('select#branch option[selected]').length); |
1617 |
if ( i > 4) i+=may_have_priority; |
1616 |
if ( i == 3 ) { |
1618 |
if ( i == 3 ) { |
1617 |
// specific processing for the Note column |
1619 |
// specific processing for the Note column |
1618 |
var note = $(this).find("a[name='viewnote']").data("content"); |
1620 |
var note = $(this).find("a[name='viewnote']").data("content"); |
1619 |
$(current_column).find("input[type='text']").val(note); |
1621 |
$(current_column).find("input[type='text']").val(note); |
|
|
1622 |
} else if ( i == 4 && may_have_priority ) { |
1623 |
var has_priority = $(this).find("input[type='checkbox']"); |
1624 |
$('#has_priority').prop('checked', has_priority.is(':checked') ); |
1620 |
} else if ( i == 9 ) { |
1625 |
} else if ( i == 9 ) { |
1621 |
// specific processing for the Hard due date column |
1626 |
// specific processing for the Hard due date column |
1622 |
var select_value = $(this).find("input[type='hidden'][name='hardduedatecomparebackup']").val(); |
1627 |
var select_value = $(this).find("input[type='hidden'][name='hardduedatecomparebackup']").val(); |
Lines 1633-1642
Link Here
|
1633 |
var cap_fine_to_replacement_price = $(this).find("input[type='checkbox']"); |
1638 |
var cap_fine_to_replacement_price = $(this).find("input[type='checkbox']"); |
1634 |
$('#cap_fine_to_replacement_price').prop('checked', cap_fine_to_replacement_price.is(':checked') ); |
1639 |
$('#cap_fine_to_replacement_price').prop('checked', cap_fine_to_replacement_price.is(':checked') ); |
1635 |
$('#overduefinescap').prop('disabled', cap_fine_to_replacement_price.is(':checked') ); |
1640 |
$('#overduefinescap').prop('disabled', cap_fine_to_replacement_price.is(':checked') ); |
1636 |
} else if ( i == 3 ) { |
|
|
1637 |
var has_priority = $(this).find("input[type='checkbox']"); |
1638 |
$('#has_priority').prop('checked', has_priority.is(':checked') ); |
1639 |
//$('#overduefinescap').prop('disabled', cap_fine_to_replacement_price.is(':checked') ); |
1640 |
} else { |
1641 |
} else { |
1641 |
$(current_column).find("input[type='text']").val(itm); |
1642 |
$(current_column).find("input[type='text']").val(itm); |
1642 |
// select the corresponding option |
1643 |
// select the corresponding option |