Continue working on options
This commit is contained in:
parent
565759decf
commit
9dcaeb88c1
5 changed files with 123 additions and 34 deletions
|
|
@ -24,10 +24,6 @@ html, body {
|
|||
background-color: #ffffff;
|
||||
}
|
||||
|
||||
#librarytoggle, #userpltoggle, #playlisttoggle {
|
||||
background-color: #ffffff;
|
||||
}
|
||||
|
||||
#librarywrap, #userplaylistwrap, #playlist_controls {
|
||||
display: none;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,17 +1,13 @@
|
|||
(function() {
|
||||
|
||||
$("#channelsettingswrap div").each(function() {
|
||||
$("#channelsettingswrap div.span12").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() {
|
||||
$("#csdropdown_title").text($(selector).text());
|
||||
$("#channelsettingswrap div.span12").each(function() {
|
||||
$(this).hide();
|
||||
});
|
||||
$(div).show();
|
||||
|
|
@ -21,4 +17,7 @@
|
|||
clickHandler("#show_optedit", "#optedit");
|
||||
clickHandler("#show_permedit", "#permedit");
|
||||
clickHandler("#show_motdedit", "#motdedit");
|
||||
clickHandler("#show_filteredit", "#filteredit");
|
||||
clickHandler("#show_cssedit", "#cssedit");
|
||||
clickHandler("#show_jsedit", "#jsedit");
|
||||
})();
|
||||
|
|
|
|||
|
|
@ -4,14 +4,14 @@ function generateToggle(chevron, div) {
|
|||
if($(div).css("display") == "none") {
|
||||
$(chevron).html($(chevron).html().replace(/Show/, "Hide"));
|
||||
$(div).show();
|
||||
$(chevron+" i").removeClass("icon-chevron-down")
|
||||
.addClass("icon-chevron-up");
|
||||
$(chevron+" i").removeClass("icon-plus")
|
||||
.addClass("icon-minus");
|
||||
}
|
||||
else {
|
||||
$(chevron).html($(chevron).html().replace(/Hide/, "Show"));
|
||||
$(div).hide();
|
||||
$(chevron+" i").removeClass("icon-chevron-up")
|
||||
.addClass("icon-chevron-down");
|
||||
$(chevron+" i").removeClass("icon-minus")
|
||||
.addClass("icon-plus");
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue