From af2ccb13e3001f388a320a0619e22871429e09b5 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 1 Aug 2018 12:28:37 -0300 Subject: [PATCH] Bug 21139: Floating toolbar - Remove dup id 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 Signed-off-by: Katrin Fischer Signed-off-by: Nick Clemens (cherry picked from commit 77196e91402cdb59242f80e596f1812d238923c2) Signed-off-by: Martin Renvoize --- koha-tmpl/intranet-tmpl/lib/jquery/plugins/jquery.fixFloat.js | 1 + 1 file changed, 1 insertion(+) diff --git a/koha-tmpl/intranet-tmpl/lib/jquery/plugins/jquery.fixFloat.js b/koha-tmpl/intranet-tmpl/lib/jquery/plugins/jquery.fixFloat.js index 74633e7877..dcfaf5fe6b 100644 --- a/koha-tmpl/intranet-tmpl/lib/jquery/plugins/jquery.fixFloat.js +++ b/koha-tmpl/intranet-tmpl/lib/jquery/plugins/jquery.fixFloat.js @@ -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"); -- 2.39.2