From cb10e442cbc1f6ce775dd5692c761c3f3509320e Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 5 Jan 2016 15:54:59 +0000 Subject: [PATCH] Bug 15412: Enable dropdowns date selector when suspending holds MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit It seems to be the way to fix that https://stackoverflow.com/questions/13649459/twitter-bootstrap-multiple-modal-error Test plan: 1 - Place a hold through the opac 2 - View your account->Holds 3 - Click suspend hold 4 - You should be able to select a date using the arrows and dropdowns Followed test plan, works as expected. Signed-off-by: Marc Véron Signed-off-by: Katrin Fischer Signed-off-by: Brendan A Gallagher (cherry picked from commit 01d48a78258f98f693a8f48d7294a6ae880d5fc4) Signed-off-by: Julian Maurice (cherry picked from commit 2c84b8a78bef287e1563ec10527e0f67cc39d125) Signed-off-by: Frédéric Demians --- koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-bottom.inc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-bottom.inc b/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-bottom.inc index 59b046491e..2013682855 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-bottom.inc +++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-bottom.inc @@ -94,6 +94,9 @@ $.widget.bridge('uitooltip', $.ui.tooltip); "[% interface %]/[% theme %]/lib/enquire.min.js", "[% interface %]/[% theme %]/js/script.js" ]); + + // Fix for datepicker in a modal + $.fn.modal.Constructor.prototype.enforceFocus = function () {}; [% IF ( OPACAmazonCoverImages || SyndeticsCoverImages ) %]