fix switching of Views for non-admin-users (#135)

This commit is contained in:
Krombel 2016-11-19 02:50:09 +01:00
parent 93c88cc196
commit a3affccacd

View file

@ -1177,6 +1177,18 @@ $(document).ready(function () {
entry: $('#searchlogs-entry').val()
});
});
<?php } else { ?>
$('#AboutMe').hide();
$('#aboutme').click(function () {
$('#MasterZones').hide();
$('#SlaveZones').hide();
$('#AboutMe').show();
});
$('#zoneadmin').click(function () {
$('#AboutMe').hide();
$('#MasterZones').show();
$('#SlaveZones').show();
});
<?php } ?>
$('#MasterZones').jtable('load');