Bug 21139: Floating toolbar - Remove dup id
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 1 Aug 2018 15:28:37 +0000 (12:28 -0300)
committerNick Clemens <nick@bywatersolutions.com>
Tue, 14 Aug 2018 11:41:06 +0000 (11:41 +0000)
We should not have twice the same id, we always use fixFloat() on an
element with an id and then duplicate this element.
The id must be changed (just in case)

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
koha-tmpl/intranet-tmpl/lib/jquery/plugins/jquery.fixFloat.js

index 74633e7..dcfaf5f 100644 (file)
@@ -29,6 +29,7 @@
             });
             tbhBis.width(tbh.outerWidth(true));
             tbhBis.height(tbh.outerHeight(true));
+            tbhBis.attr('id', tbh.attr('id')+'Bis'); // Avoid 2 elts with the same id
             tbh.after(tbhBis);
             tbh.width(tbh.width());
             var tbl = tbh.find("th,td");