From 48de1301ecf7954b048bb0eae26236c0f67afe41 Mon Sep 17 00:00:00 2001 From: Jared Camins-Esakov Date: Wed, 11 Sep 2013 18:14:30 -0400 Subject: [PATCH] Bug 10240 follow-up: disable logout/set library Logging out/setting the library does not work while using offline mode, so it makes no sense to present those options to the user. Much better is some sort of explanatory message informing them that those two links don't work. Signed-off-by: Bernardo Gonzalez Kriegel Signed-off-by: Chris Cormack --- koha-tmpl/intranet-tmpl/prog/en/modules/circ/offline.tt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/offline.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/offline.tt index 18dd737..df8b62b 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/offline.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/offline.tt @@ -439,6 +439,8 @@ window.addEventListener('load', function(e) { $(document).ready(function () { kohadb.initialize(); + $('ul[aria-labelledby="drop3"]').html('
  • You cannot change your branch or logout while using offline circulation
  • '); + // Returns code $('#checkin-form, #checkin_search form').submit(function (event) { event.preventDefault(); -- 1.8.4.rc3