Start working on channel settings
This commit is contained in:
parent
f6615f1f20
commit
00abe7ced1
6 changed files with 63 additions and 12 deletions
24
www/assets/js/channelsettings.js
Normal file
24
www/assets/js/channelsettings.js
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
(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");
|
||||
})();
|
||||
Loading…
Add table
Add a link
Reference in a new issue