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