refactor: refactor for modern layout
- split frontend and backend. - update backend with modern Python dev strategies.
This commit is contained in:
10
frontend/static/js/tabcontrol.js
Normal file
10
frontend/static/js/tabcontrol.js
Normal file
@@ -0,0 +1,10 @@
|
||||
// all args are based on 1
|
||||
function ccn_tabcontrol_SwitchTab(tabcontrolGroup, targetTabIndex) {
|
||||
// close all panel and tab
|
||||
$(".tabcontrol-tab-" + tabcontrolGroup).removeClass("is-active");
|
||||
$(".tabcontrol-panel-" + tabcontrolGroup).hide();
|
||||
|
||||
// show specific
|
||||
$("#tabcontrol-tab-" + tabcontrolGroup + "-" + targetTabIndex).addClass("is-active");
|
||||
$("#tabcontrol-panel-" + tabcontrolGroup + "-" + targetTabIndex).show();
|
||||
}
|
||||
Reference in New Issue
Block a user