Lines 191-197
function cloneItemBlock(index, unique_item_fields, callback) {
Link Here
|
191 |
/* Copy values from the original block (input) */ |
191 |
/* Copy values from the original block (input) */ |
192 |
$(original).find("input[name='field_value']").each(function(){ |
192 |
$(original).find("input[name='field_value']").each(function(){ |
193 |
var kohafield = $(this).siblings("input[name='kohafield']").val(); |
193 |
var kohafield = $(this).siblings("input[name='kohafield']").val(); |
194 |
if($(this).val() && $.inArray(kohafield,dont_copy_fields) == -1) { |
194 |
//NOTE: flatpickr_wrapper prevents kohafield from being found |
|
|
195 |
if(kohafield && $(this).val() && $.inArray(kohafield,dont_copy_fields) == -1) { |
195 |
$(this).parent("div").attr("id").match(/^(subfield.)/); |
196 |
$(this).parent("div").attr("id").match(/^(subfield.)/); |
196 |
var id = RegExp.$1; |
197 |
var id = RegExp.$1; |
197 |
var value = $(this).val(); |
198 |
var value = $(this).val(); |
198 |
- |
|
|