Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/opnsense/mvc/app/views/OPNsense/Firewall/alias.volt
Original file line number Diff line number Diff line change
Expand Up @@ -623,6 +623,14 @@

$('.nav-tabs a').on('shown.bs.tab', function (e) {
history.pushState(null, null, e.target.hash);
switch (e.target.hash) {
case '#actions':
$('#reconfigureAct').closest('.content-box').hide();
break;
default:
$('#reconfigureAct').closest('.content-box').show();
break;
}
});

// move filter into action header
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,11 @@

$('a[data-toggle="tab"]').on('shown.bs.tab', function (e) {
switch (e.target.hash) {
case '#settings':
$('#reconfigureAct').closest('.content-box').show();
break;
case '#hosts':
$('#reconfigureAct').closest('.content-box').hide();
if (!$("#grid-hosts").hasClass('tabulator')) {
$("#grid-hosts").UIBootgrid({
search:'/api/hostdiscovery/service/search',
Expand Down
2 changes: 1 addition & 1 deletion src/opnsense/mvc/app/views/OPNsense/IPsec/settings.volt
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@
<form id="mainform">
<div class="content-box tab-content">
{{ partial("layout_partials/base_tabs_content",['formData':formSettings]) }}
<div id="configTab" class="tab-pane fade"/>
<div id="configTab" class="tab-pane fade"></div>
</div>
</form>

Expand Down
6 changes: 4 additions & 2 deletions src/opnsense/mvc/app/views/OPNsense/Syslog/index.volt
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,10 @@

$('a[data-toggle="tab"]').on('shown.bs.tab', function (e) {
if (e.target.id === 'statistics') {
$('#reconfigureAct').closest('.content-box').hide();
$("#grid-statistics").bootgrid('reload');
} else {
$('#reconfigureAct').closest('.content-box').show();
}
});

Expand Down Expand Up @@ -98,7 +101,7 @@
<li><a data-toggle="tab" id="statistics" href="#tab_statistics">{{ lang._('Statistics') }}</a></li>
</ul>
<div class="tab-content content-box">
<div id="tab_local" class="tab-pane fade in active __mb">
<div id="tab_local" class="tab-pane fade in active">
<!-- tab page "local" -->
{{ partial("layout_partials/base_form",['fields':localForm,'id':'frm_local_settings'])}}
</div>
Expand All @@ -121,7 +124,6 @@
<tbody>
</tbody>
</table>
<hr/>
</div>
</div>

Expand Down