mirror of
https://github.com/Spengreb/sync.git
synced 2026-05-15 03:52:06 +00:00
24 lines
663 B
JavaScript
24 lines
663 B
JavaScript
(function() {
|
|
|
|
$("#channelsettingswrap div").each(function() {
|
|
$(this).hide();
|
|
});
|
|
|
|
function clickHandler(selector, div) {
|
|
$(selector).click(function() {
|
|
$("#channelsettings_nav li").each(function() {
|
|
$(this).removeClass("active");
|
|
});
|
|
$(selector).parent().addClass("active");
|
|
|
|
$("#channelsettingswrap div").each(function() {
|
|
$(this).hide();
|
|
});
|
|
$(div).show();
|
|
});
|
|
}
|
|
|
|
clickHandler("#show_optedit", "#optedit");
|
|
clickHandler("#show_permedit", "#permedit");
|
|
clickHandler("#show_motdedit", "#motdedit");
|
|
})();
|