From 2d0bccd0be43e77ef7e344377de62391695e6fdf Mon Sep 17 00:00:00 2001 From: Fridolin Somers Date: Wed, 31 May 2017 16:10:41 +0200 Subject: [PATCH] [SIGNED-OFF] 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 --- 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 91c5214..d689273 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.1.4