From 05f23a2fb79754cee7f2dedf5b8a743afe4b2c1d Mon Sep 17 00:00:00 2001
From: Kyle M Hall <kyle@bywatersolutions.com>
Date: Tue, 22 Sep 2015 08:40:01 -0400
Subject: [PATCH] Bug 11622 [QA Followup] - Show ability to pay only if JavaScript is enabled

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
---
 .../opac-tmpl/bootstrap/en/modules/opac-account.tt |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-account.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-account.tt
index aefad49..7bf893c 100644
--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-account.tt
+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-account.tt
@@ -93,7 +93,7 @@
                                         [% IF ENABLE_OPAC_PAYMENTS %]
                                             <td>
                                                 [% IF ACCOUNT_LINE.amountoutstanding > 0 %]
-                                                    <input name="accountline" type="checkbox" class="checkbox-pay" id="checkbox-pay-[% ACCOUNT_LINE.accountlines_id %]" value="[% ACCOUNT_LINE.accountlines_id %]">
+                                                    <input class="checkbox-pay pay-online hidden" name="accountline" type="checkbox" id="checkbox-pay-[% ACCOUNT_LINE.accountlines_id %]" value="[% ACCOUNT_LINE.accountlines_id %]">
                                                     <input type="hidden" id="amount-[% ACCOUNT_LINE.accountlines_id %]" value="[% ACCOUNT_LINE.amountoutstanding %]" />
                                                 [% END %]
                                             </td>
@@ -133,7 +133,7 @@
                         </table>
 
                             [% IF ENABLE_OPAC_PAYMENTS %]
-                                <fieldset>
+                                <fieldset class="pay-online hidden">
                                     <legend>Pay selected fines and charges</legend>
                                         <span class="help-block"><h3>Payment method</h3></span>
                                         <div class="control-group">
@@ -174,6 +174,8 @@
 [% BLOCK jsinclude %]
 <script type="text/javascript">
 $( document ).ready(function() {
+    $(".pay-online").removeClass("hidden");
+
     $("#amount-to-pay-label").hide();
 
     $(".checkbox-pay").change( function() {
-- 
1.7.2.5