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-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_permedit", "#permedit");
|
||||
clickHandler("#show_motdedit", "#motdedit");
|
||||
|
|
|
@ -215,6 +215,10 @@ $("#qlockbtn").click(function() {
|
|||
socket.emit("togglePlaylistLock");
|
||||
});
|
||||
|
||||
$("#voteskip").click(function() {
|
||||
socket.emit("voteskip");
|
||||
});
|
||||
|
||||
$("#getplaylist").click(function() {
|
||||
var callback = function(data) {
|
||||
PLAYER.hide();
|
||||
|
|
|
@ -661,8 +661,8 @@ function handlePermissionChange() {
|
|||
|
||||
if(CLIENT.rank >= 2) {
|
||||
$("#channelsettingswrap3").show();
|
||||
if($("#channelsettingswrap").html() == "")
|
||||
$("#channelsettingswrap").load("channeloptions.html");
|
||||
if($("#channelsettingswrap").html() == "") {
|
||||
$("#channelsettingswrap").load("channeloptions.html", function() {
|
||||
/* update channel controls */
|
||||
$("#opt_pagetitle").val(CHANNEL.opts.pagetitle);
|
||||
$("#opt_externalcss").val(CHANNEL.opts.externalcss);
|
||||
|
@ -679,6 +679,8 @@ function handlePermissionChange() {
|
|||
setVisible("#jsedit_tab", CLIENT.rank >= 3);
|
||||
setVisible("#filteredit_tab", hasPermission("filteredit"));
|
||||
setVisible("#channelranks_tab", CLIENT.rank >= 3);
|
||||
});
|
||||
}
|
||||
}
|
||||
else {
|
||||
$("#channelsettingswrap").html("");
|
||||
|
|
|
@ -162,6 +162,7 @@
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<button class="btn btn-block" id="voteskip">Voteskip</button>
|
||||
<!-- video queue -->
|
||||
<ul class="span12 videolist" id="queue">
|
||||
</ul>
|
||||
|
|
|
@ -14,6 +14,7 @@
|
|||
<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="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>
|
||||
</div>
|
||||
<hr>
|
||||
|
|
Loading…
Reference in New Issue