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 :
  <input type="checkbox" ... name="disable_input" value="[% ite.subfield %]" />

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit 6bb4a0405a)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
Fridolin Somers 2017-05-31 16:10:41 +02:00
parent dc1f51959a
commit 7bf1bf36f4
1 changed files with 0 additions and 1 deletions

View File

@ -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 {