From 54a2d0ddf153b4aeb6226b8afbc4bf2c2f13db8f 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 : --- 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.7.4