mirror of
https://github.com/ehang-io/nps.git
synced 2025-09-02 20:16:52 +00:00
redo web UI |web close| client log |system info |p2p |max、ump optimization
This commit is contained in:
@@ -1,30 +1,3 @@
|
||||
(function () {
|
||||
"use strict";
|
||||
|
||||
var treeviewMenu = $('.app-menu');
|
||||
|
||||
// Toggle Sidebar
|
||||
$('[data-toggle="sidebar"]').click(function (event) {
|
||||
event.preventDefault();
|
||||
$('.app').toggleClass('sidenav-toggled');
|
||||
});
|
||||
|
||||
// Activate sidebar treeview toggle
|
||||
$("[data-toggle='treeview']").click(function (event) {
|
||||
event.preventDefault();
|
||||
if (!$(this).parent().hasClass('is-expanded')) {
|
||||
treeviewMenu.find("[data-toggle='treeview']").parent().removeClass('is-expanded');
|
||||
}
|
||||
$(this).parent().toggleClass('is-expanded');
|
||||
});
|
||||
|
||||
// Set initial active toggle
|
||||
$("[data-toggle='treeview.'].is-expanded").parent().toggleClass('is-expanded');
|
||||
|
||||
//Activate bootstrip tooltips
|
||||
// $("[data-toggle='tooltip']").tooltip();
|
||||
|
||||
})();
|
||||
|
||||
function change(limit) {
|
||||
var size = "";
|
||||
|
Reference in New Issue
Block a user