From 7bf1bf36f4b075979e4e47beb5de0891a1f1e533 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 --- 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 e774e95bae..2b746ab403 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