Lines 1159-1165
Link Here
|
1159 |
$("#creator").html([row.creator.surname, row.creator.firstname].filter(function(name){return name}).join(', ')+" ("+row.creator.patron_id+')') |
1159 |
$("#creator").html([row.creator.surname, row.creator.firstname].filter(function(name){return name}).join(', ')+" ("+row.creator.patron_id+')') |
1160 |
$("#quantity_to_receive").val(row.quantity).prop('readonly', !row.subscription_id); |
1160 |
$("#quantity_to_receive").val(row.quantity).prop('readonly', !row.subscription_id); |
1161 |
$("#quantity").val( effective_create_items == 'cataloguing' ? row.quantity_received || 1 : row.quantity_received ) |
1161 |
$("#quantity").val( effective_create_items == 'cataloguing' ? row.quantity_received || 1 : row.quantity_received ) |
1162 |
.prop('readonly', !row.subscription_id && effective_create_items == 'receiving'); |
1162 |
.prop('readonly', !row.subscription_id && effective_create_items == 'receiving') |
|
|
1163 |
.change(); |
1163 |
[% IF only_one_order %] |
1164 |
[% IF only_one_order %] |
1164 |
$(".modal-save").prop('disabled', $("#quantity").val() == 0); |
1165 |
$(".modal-save").prop('disabled', $("#quantity").val() == 0); |
1165 |
[% END %] |
1166 |
[% END %] |
1166 |
- |
|
|