mirror of https://github.com/calzoneman/sync.git
Add voteskip button, fix bugs
This commit is contained in:
parent
b60981c8d8
commit
dc5c6801ed
|
@ -318,3 +318,7 @@ html, body {
|
||||||
border: 1px solid #aaaaaa;
|
border: 1px solid #aaaaaa;
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#channelsettingswrap3 {
|
||||||
|
margin-top: 20px;
|
||||||
|
}
|
||||||
|
|
|
@ -14,6 +14,13 @@
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$("#hide_settings").click(function() {
|
||||||
|
$("#csdropdown_title").text("Moderation Menu");
|
||||||
|
$("#channelsettingswrap div.span12").each(function() {
|
||||||
|
$(this).hide();
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
clickHandler("#show_optedit", "#optedit");
|
clickHandler("#show_optedit", "#optedit");
|
||||||
clickHandler("#show_permedit", "#permedit");
|
clickHandler("#show_permedit", "#permedit");
|
||||||
clickHandler("#show_motdedit", "#motdedit");
|
clickHandler("#show_motdedit", "#motdedit");
|
||||||
|
|
|
@ -215,6 +215,10 @@ $("#qlockbtn").click(function() {
|
||||||
socket.emit("togglePlaylistLock");
|
socket.emit("togglePlaylistLock");
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$("#voteskip").click(function() {
|
||||||
|
socket.emit("voteskip");
|
||||||
|
});
|
||||||
|
|
||||||
$("#getplaylist").click(function() {
|
$("#getplaylist").click(function() {
|
||||||
var callback = function(data) {
|
var callback = function(data) {
|
||||||
PLAYER.hide();
|
PLAYER.hide();
|
||||||
|
|
|
@ -661,8 +661,8 @@ function handlePermissionChange() {
|
||||||
|
|
||||||
if(CLIENT.rank >= 2) {
|
if(CLIENT.rank >= 2) {
|
||||||
$("#channelsettingswrap3").show();
|
$("#channelsettingswrap3").show();
|
||||||
if($("#channelsettingswrap").html() == "")
|
if($("#channelsettingswrap").html() == "") {
|
||||||
$("#channelsettingswrap").load("channeloptions.html");
|
$("#channelsettingswrap").load("channeloptions.html", function() {
|
||||||
/* update channel controls */
|
/* update channel controls */
|
||||||
$("#opt_pagetitle").val(CHANNEL.opts.pagetitle);
|
$("#opt_pagetitle").val(CHANNEL.opts.pagetitle);
|
||||||
$("#opt_externalcss").val(CHANNEL.opts.externalcss);
|
$("#opt_externalcss").val(CHANNEL.opts.externalcss);
|
||||||
|
@ -679,6 +679,8 @@ function handlePermissionChange() {
|
||||||
setVisible("#jsedit_tab", CLIENT.rank >= 3);
|
setVisible("#jsedit_tab", CLIENT.rank >= 3);
|
||||||
setVisible("#filteredit_tab", hasPermission("filteredit"));
|
setVisible("#filteredit_tab", hasPermission("filteredit"));
|
||||||
setVisible("#channelranks_tab", CLIENT.rank >= 3);
|
setVisible("#channelranks_tab", CLIENT.rank >= 3);
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$("#channelsettingswrap").html("");
|
$("#channelsettingswrap").html("");
|
||||||
|
|
|
@ -162,6 +162,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<button class="btn btn-block" id="voteskip">Voteskip</button>
|
||||||
<!-- video queue -->
|
<!-- video queue -->
|
||||||
<ul class="span12 videolist" id="queue">
|
<ul class="span12 videolist" id="queue">
|
||||||
</ul>
|
</ul>
|
||||||
|
|
|
@ -14,6 +14,7 @@
|
||||||
<li id="banlist_tab"><a href="javascript:void(0);" id="show_banlist">Ban List</a></li>
|
<li id="banlist_tab"><a href="javascript:void(0);" id="show_banlist">Ban List</a></li>
|
||||||
<li id="channelranks_tab"><a href="javascript:void(0);" id="show_channelranks">Channel Ranks</a></li>
|
<li id="channelranks_tab"><a href="javascript:void(0);" id="show_channelranks">Channel Ranks</a></li>
|
||||||
<li id="loginhistory_tab"><a href="javascript:void(0);" id="show_loginhistory">Recent Connections</a></li>
|
<li id="loginhistory_tab"><a href="javascript:void(0);" id="show_loginhistory">Recent Connections</a></li>
|
||||||
|
<li id="hidesettings_tab"><a href="javascript:void(0);" id="hide_settings">Hide Menu</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<hr>
|
<hr>
|
||||||
|
|
Loading…
Reference in New Issue