From 3f7d15b7f6baec1d6313c7ea5d81961289cac169 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Mon, 23 Sep 2019 11:03:02 +0100 Subject: [PATCH] Bug 23623: (RM follow-up) Minor JS Tidy Apply 'Break lines on chained methods' to the new JS code introduced in this patchset to prevent really long lines. Signed-off-by: Martin Renvoize --- .../bootstrap/en/modules/opac-memberentry.tt | 36 ++++++++++++++----- 1 file changed, 28 insertions(+), 8 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-memberentry.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-memberentry.tt index cc96be9d04..8761cc88ae 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-memberentry.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-memberentry.tt @@ -1055,13 +1055,23 @@ $.ajax({ url: "/api/v1/public/patrons/[% logged_in_user.borrowernumber | uri %]/guarantors/can_see_checkouts", type: "PUT", - data: JSON.stringify({ allowed: can_see_checkouts }), + data: JSON.stringify({ + allowed: can_see_checkouts + }), contentType: "application/json", - success: function() { - $('#update_privacy_guarantor_checkouts_message').fadeIn("slow").text( _("Your setting has been updated!") ).delay( 5000 ).fadeOut("slow"); + success: function () { + $('#update_privacy_guarantor_checkouts_message') + .fadeIn("slow") + .text(_("Your setting has been updated!")) + .delay(5000) + .fadeOut("slow"); }, - error: function() { - $('#update_privacy_guarantor_checkouts_message').fadeIn("slow").text( _("Unable to update your setting!") ).delay( 5000 ).fadeOut("slow"); + error: function () { + $('#update_privacy_guarantor_checkouts_message') + .fadeIn("slow") + .text(_("Unable to update your setting!")) + .delay(5000) + .fadeOut("slow"); } }); }); @@ -1073,13 +1083,23 @@ $.ajax({ url: "/api/v1/public/patrons/[% logged_in_user.borrowernumber | uri %]/guarantors/can_see_charges", type: 'PUT', - data: JSON.stringify({ allowed: can_see_charges }), + data: JSON.stringify({ + allowed: can_see_charges + }), contentType: 'application/json', success: function() { - $('#update_privacy_guarantor_fines_message').fadeIn("slow").text( _("Your setting has been updated!") ).delay( 5000 ).fadeOut("slow"); + $('#update_privacy_guarantor_fines_message') + .fadeIn("slow") + .text( _("Your setting has been updated!") ) + .delay( 5000 ) + .fadeOut("slow"); }, error: function() { - $('#update_privacy_guarantor_fines_message').fadeIn("slow").text( _("Unable to update your setting!") ).delay( 5000 ).fadeOut("slow"); + $('#update_privacy_guarantor_fines_message') + .fadeIn("slow") + .text( _("Unable to update your setting!") ) + .delay( 5000 ) + .fadeOut("slow"); } }); }); -- 2.39.5