moving to roles again after saving

This commit is contained in:
Frank Schubert
2021-07-02 00:10:55 +02:00
parent f66da99910
commit 5c99e8008e
4 changed files with 22 additions and 5 deletions

View File

@@ -241,6 +241,22 @@
}
}
var network;
var hash = window.location.hash.substr(1);
var match = hash.match(/net=(\d+)/);
if(match && match[1]) {
network = match[1]
toggleNetwork(network);
}
match = hash.match(/view=([^&]+)/);
if(match && match[1] == "roles" && network) {
$('a[href="#net-detail-' + network + '-roles"]').tab('show');
}
//window.location.hash = "";
</script>
<?php include(realpath(dirname(__FILE__)."/../")."/footer.php"); ?>