Lines 1120-1129
Link Here
|
1120 |
itm = $(this).text(); |
1120 |
itm = $(this).text(); |
1121 |
itm = itm.replace(/^\s*|\s*$/g,''); |
1121 |
itm = itm.replace(/^\s*|\s*$/g,''); |
1122 |
var current_column = $("#edit_row td:eq("+i+")"); |
1122 |
var current_column = $("#edit_row td:eq("+i+")"); |
|
|
1123 |
var may_have_priority = (0 == $('select#branch option[selected]').length); |
1124 |
if ( i > 4) i+=may_have_priority; |
1123 |
if ( i == 3 ) { |
1125 |
if ( i == 3 ) { |
1124 |
// specific processing for the Note column |
1126 |
// specific processing for the Note column |
1125 |
var note = $(this).find("a[name='viewnote']").data("content"); |
1127 |
var note = $(this).find("a[name='viewnote']").data("content"); |
1126 |
$(current_column).find("input[type='text']").val(note); |
1128 |
$(current_column).find("input[type='text']").val(note); |
|
|
1129 |
} else if ( i == 4 && may_have_priority ) { |
1130 |
var has_priority = $(this).find("input[type='checkbox']"); |
1131 |
$('#has_priority').prop('checked', has_priority.is(':checked') ); |
1127 |
} else if ( i == 9 ) { |
1132 |
} else if ( i == 9 ) { |
1128 |
// specific processing for the Hard due date column |
1133 |
// specific processing for the Hard due date column |
1129 |
var select_value = $(this).find("input[type='hidden'][name='hardduedatecomparebackup']").val(); |
1134 |
var select_value = $(this).find("input[type='hidden'][name='hardduedatecomparebackup']").val(); |
Lines 1140-1149
Link Here
|
1140 |
var cap_fine_to_replacement_price = $(this).find("input[type='checkbox']"); |
1145 |
var cap_fine_to_replacement_price = $(this).find("input[type='checkbox']"); |
1141 |
$('#cap_fine_to_replacement_price').prop('checked', cap_fine_to_replacement_price.is(':checked') ); |
1146 |
$('#cap_fine_to_replacement_price').prop('checked', cap_fine_to_replacement_price.is(':checked') ); |
1142 |
$('#overduefinescap').prop('disabled', cap_fine_to_replacement_price.is(':checked') ); |
1147 |
$('#overduefinescap').prop('disabled', cap_fine_to_replacement_price.is(':checked') ); |
1143 |
} else if ( i == 3 ) { |
|
|
1144 |
var has_priority = $(this).find("input[type='checkbox']"); |
1145 |
$('#has_priority').prop('checked', has_priority.is(':checked') ); |
1146 |
//$('#overduefinescap').prop('disabled', cap_fine_to_replacement_price.is(':checked') ); |
1147 |
} else { |
1148 |
} else { |
1148 |
$(current_column).find("input[type='text']").val(itm); |
1149 |
$(current_column).find("input[type='text']").val(itm); |
1149 |
// select the corresponding option |
1150 |
// select the corresponding option |