mirror of https://github.com/calzoneman/sync.git
Merge branch 'v2.0' of github.com:calzoneman/sync into v2.0
This commit is contained in:
commit
e400dac160
|
@ -908,9 +908,12 @@ Callbacks = {
|
||||||
$("<i/>").addClass("icon-trash").appendTo(del);
|
$("<i/>").addClass("icon-trash").appendTo(del);
|
||||||
(function(li) {
|
(function(li) {
|
||||||
del.click(function() {
|
del.click(function() {
|
||||||
|
var go = confirm("Are you sure you want to delete playlist '" + li.data("pl-name") + "'?");
|
||||||
|
if(go) {
|
||||||
socket.emit("deletePlaylist", {
|
socket.emit("deletePlaylist", {
|
||||||
name: li.data("pl-name")
|
name: li.data("pl-name")
|
||||||
});
|
});
|
||||||
|
}
|
||||||
});
|
});
|
||||||
})(li);
|
})(li);
|
||||||
if(hasPermission("playlistaddlist")) {
|
if(hasPermission("playlistaddlist")) {
|
||||||
|
|
|
@ -34,7 +34,7 @@ var CHANNEL = {
|
||||||
|
|
||||||
var PLAYER = false;
|
var PLAYER = false;
|
||||||
var FLUIDLAYOUT = false;
|
var FLUIDLAYOUT = false;
|
||||||
if($("ytapiplayer").length > 0) {
|
if($("#ytapiplayer").length > 0) {
|
||||||
var VWIDTH = $("#ytapiplayer").parent().css("width").replace("px", "");
|
var VWIDTH = $("#ytapiplayer").parent().css("width").replace("px", "");
|
||||||
var VHEIGHT = ""+parseInt(parseInt(VWIDTH) * 9 / 16);
|
var VHEIGHT = ""+parseInt(parseInt(VWIDTH) * 9 / 16);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue