Merge pull request #136 from krombel/master

fix switching of Views for non-admin-users (fix #135)
This commit is contained in:
Tuxis Internet Engineering V.O.F 2016-11-21 10:15:03 +01:00 committed by GitHub
commit b7d61f5778

View file

@ -1177,6 +1177,18 @@ $(document).ready(function () {
entry: $('#searchlogs-entry').val() 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 } ?> <?php } ?>
$('#MasterZones').jtable('load'); $('#MasterZones').jtable('load');