Files
webgui/plugins/dynamix/HelpButton.page
bergware 0aab843889 Introduce context -sensitive help
This allows for help of individual settings by clicking on the specific
setting context.
2016-03-20 19:04:02 +01:00

27 lines
762 B
Plaintext

Menu="Buttons"
Title="Help"
Icon="help.png"
---
<?PHP
/* Copyright 2015-2016, Lime Technology
* Copyright 2015-2016, Bergware International.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License version 2,
* as published by the Free Software Foundation.
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*/
?>
<script>
function HelpButton() {
if ($('#nav-item.HelpButton').toggleClass('active').hasClass('active')) {
$('.inline_help').show('slow');
$.cookie('help','help',{path:'/'});
} else {
$('.inline_help').hide('slow');
$.removeCookie('help',{path:'/'});
}
}
</script>