From 88a71ff1a82b35084fc7b84aabbcd3099d187957 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. --- .../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.7.9.5