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 <bgkriegel@gmail.com>
Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
This commit is contained in:
Jared Camins-Esakov 2013-09-11 18:14:30 -04:00 committed by Galen Charlton
parent 618ddd3490
commit 46190d5ac4

View file

@ -439,6 +439,8 @@ window.addEventListener('load', function(e) {
$(document).ready(function () {
kohadb.initialize();
$('ul[aria-labelledby="drop3"]').html('<li><a class="toplinks">You cannot change your branch or logout while using offline circulation</a></li>');
// Returns code
$('#checkin-form, #checkin_search form').submit(function (event) {
event.preventDefault();