mirror of
https://github.com/calzoneman/sync.git
synced 2024-09-13 04:32:09 +00:00
25 lines
663 B
JavaScript
25 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");
|
|
})();
|