mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-14 16:44:39 +00:00
Filter, advanced settings, point user to an option on the page. for https://github.com/opnsense/core/issues/3312
This commit is contained in:
parent
4eab7e10ac
commit
92b8b346f9
@ -235,7 +235,28 @@ legacy_html_escape_form_data($pconfig);
|
||||
|
||||
include("head.inc");
|
||||
?>
|
||||
<script>
|
||||
$( document ).ready(function() {
|
||||
if (window.location.hash != "") {
|
||||
let option_id = window.location.hash.substr(1);
|
||||
let option = $("[name='" + option_id +"']");
|
||||
let arrow = $("<i/>").addClass("fa fa-arrow-right pull-right");
|
||||
let container = $("<div/>");
|
||||
let title_td = option.closest('tr').find('td:eq(0)');
|
||||
container.css('width', '0%');
|
||||
container.css('display', 'inline-block');
|
||||
container.css('white-space', 'nowrap');
|
||||
|
||||
title_td.append(container);
|
||||
let animate_width = title_td.width() - container.position().left+ title_td.find('i:eq(0)').position().left;
|
||||
$('html, body').animate({scrollTop: option.offset().top}, 500, function() {
|
||||
container.append(arrow);
|
||||
container.animate({width: animate_width}, 800);
|
||||
});
|
||||
|
||||
}
|
||||
});
|
||||
</script>
|
||||
<body>
|
||||
<?php include("fbegin.inc"); ?>
|
||||
<!-- row -->
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user