Bug 10032: (follow-up) Move title attribute to button container
authorOwen Leonard <oleonard@myacpl.org>
Thu, 4 Jan 2018 14:16:42 +0000 (14:16 +0000)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 8 Feb 2018 20:01:14 +0000 (17:01 -0300)
This patch modifies the "Close basket" button markup so that the title
attribute on a disabled button is added to the button wrapper <div>
instead of the <a> tag. This allows the title attribute tooltip to
appear when the cursor is hovered over the button.

To test, follow the original patch's test plan and confirm that when the
"Close basket" button is disabled, hovering the mouse over the button
triggers the title attribute tooltip.

Signed-off-by: Charlotte Cordwell <charlotte.cordwell123@gmail.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt

index dc98fbb..ef5e998 100644 (file)
@@ -62,8 +62,8 @@
                    [% IF ( unclosable ) %]
                     [% ELSIF ( uncertainprices ) %]
                         <div class="btn-group"><a href="/cgi-bin/koha/acqui/uncertainprice.pl?booksellerid=[% booksellerid %]&amp;owner=1" class="btn btn-default btn-sm" id="uncertpricesbutton"><i class="fa fa-usd"></i> Uncertain prices</a></div>
-                        <div class="btn-group">
-                            <a href="" class="btn btn-default btn-sm disabled" id="closebutton" title="Can not close baskets that have items with uncertain prices in them."><i class="fa fa-times-circle"></i> Close this basket</a>
+                        <div title="Can not close baskets that have items with uncertain prices in them." class="btn-group">
+                            <a href="" class="btn btn-default btn-sm disabled" id="closebutton"><i class="fa fa-times-circle"></i> Close this basket</a>
                         </div>
                     [% ELSE %]
                         <div class="btn-group">