From 723ece1e614a48618a362625161253268f7681ab Mon Sep 17 00:00:00 2001 From: Fridolin Somers Date: Wed, 31 May 2017 16:10:41 +0200 Subject: [PATCH] Bug 18706 - Remove useless Javascript Whe checking a subfield to be deleted, the code $(this).val($(this).siblings("[name='subfield']").val()); is useless, the checkbox already contains the subfield code : Signed-off-by: Josef Moravec Signed-off-by: Jonathan Druart (cherry picked from commit 6bb4a0405abe0d03be3915644c6a05e2e3ee1e9f) Signed-off-by: Fridolin Somers (cherry picked from commit 7bf1bf36f4b075979e4e47beb5de0891a1f1e533) Signed-off-by: Katrin Fischer --- koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod-edit.tt | 1 - 1 file changed, 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod-edit.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod-edit.tt index 397abf7438..70faf19d0b 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod-edit.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod-edit.tt @@ -24,7 +24,6 @@ $(document).ready(function(){ row = row.replace("row","hint"); var editor = $(this).parent().find("[name='field_value']"); if ($(this).is(":checked")) { - $(this).val($(this).siblings("[name='subfield']").val()); $(editor).prop('disabled', true); $("#"+row).html(_("This subfield will be deleted")); } else { -- 2.39.5