Bug 15412: Enable dropdowns date selector when suspending holds
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 5 Jan 2016 15:54:59 +0000 (15:54 +0000)
committerBrendan A Gallagher <brendan@bywatersolutions.com>
Thu, 7 Jan 2016 19:26:09 +0000 (19:26 +0000)
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 <veron@veron.ch>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Brendan A Gallagher <brendan@bywatersolutions.com>
koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-bottom.inc

index 1d350ea..30ba396 100644 (file)
@@ -96,6 +96,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 () {};
 </script>
 [% IF ( OPACAmazonCoverImages || SyndeticsCoverImages ) %]
 <script type="text/javascript">//<![CDATA[