mirror of
https://github.com/unraid/webgui.git
synced 2026-01-07 18:19:54 -06:00
Merge pull request #1586 from Squidly271/patch-12
Don't save state of help button from page to page
This commit is contained in:
@@ -19,10 +19,8 @@ Code="e934"
|
||||
function HelpButton() {
|
||||
if ($('.nav-item.HelpButton').toggleClass('active').hasClass('active')) {
|
||||
$('.inline_help').show('slow');
|
||||
$.cookie('help','help');
|
||||
} else {
|
||||
$('.inline_help').hide('slow');
|
||||
$.removeCookie('help');
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</script>
|
||||
|
||||
@@ -581,7 +581,6 @@ function flashReport() {
|
||||
$(function() {
|
||||
var tab = $.cookie('one')||$.cookie('tab')||'tab1';
|
||||
if (tab=='tab0') tab = 'tab'+$('input[name$="tabs"]').length; else if ($('#'+tab).length==0) {initab(); tab = 'tab1';}
|
||||
if ($.cookie('help')=='help') {$('.inline_help').show(); $('.nav-item.HelpButton').addClass('active');}
|
||||
$('#'+tab).attr('checked', true);
|
||||
updateTime();
|
||||
$.jGrowl.defaults.closeTemplate = '<i class="fa fa-close"></i>';
|
||||
|
||||
Reference in New Issue
Block a user