mirror of https://github.com/calzoneman/sync.git
Minor fixes for queueWarn
This commit is contained in:
parent
e9e3cbb575
commit
5a2ef2d24d
|
@ -921,7 +921,8 @@ PlaylistModule.prototype._addItem = function (media, data, user, cb) {
|
||||||
if (media.type === "fi" && media.meta.bitrate > 1000) {
|
if (media.type === "fi" && media.meta.bitrate > 1000) {
|
||||||
user.socket.emit("queueWarn", {
|
user.socket.emit("queueWarn", {
|
||||||
msg: "This video has a bitrate over 1000kbps. Clients with slow " +
|
msg: "This video has a bitrate over 1000kbps. Clients with slow " +
|
||||||
"connections may experience lots of buffering."
|
"connections may experience lots of buffering.",
|
||||||
|
link: data.link
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -933,7 +934,8 @@ PlaylistModule.prototype._addItem = function (media, data, user, cb) {
|
||||||
user.socket.emit("queueWarn", {
|
user.socket.emit("queueWarn", {
|
||||||
msg: "The codec <code>" + media.meta.codec + "</code> is not supported " +
|
msg: "The codec <code>" + media.meta.codec + "</code> is not supported " +
|
||||||
"by all browsers, and is not supported by the flash fallback layer. " +
|
"by all browsers, and is not supported by the flash fallback layer. " +
|
||||||
"This video may not play for some users."
|
"This video may not play for some users.",
|
||||||
|
link: data.link
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -2018,9 +2018,7 @@ function queueMessage(data, type) {
|
||||||
var alerts = $(".qfalert.qf-" + type + " .alert");
|
var alerts = $(".qfalert.qf-" + type + " .alert");
|
||||||
for (var i = 0; i < alerts.length; i++) {
|
for (var i = 0; i < alerts.length; i++) {
|
||||||
var al = $(alerts[i]);
|
var al = $(alerts[i]);
|
||||||
var cl = al.clone();
|
if (al.data("reason") === data.msg) {
|
||||||
cl.children().remove();
|
|
||||||
if (cl.text() === data.msg) {
|
|
||||||
var tag = al.find("." + ltype);
|
var tag = al.find("." + ltype);
|
||||||
if (tag.length > 0) {
|
if (tag.length > 0) {
|
||||||
var morelinks = al.find(".qflinks");
|
var morelinks = al.find(".qflinks");
|
||||||
|
@ -2057,9 +2055,10 @@ function queueMessage(data, type) {
|
||||||
text += "<br><a href='" + data.link + "' target='_blank'>" +
|
text += "<br><a href='" + data.link + "' target='_blank'>" +
|
||||||
data.link + "</a>";
|
data.link + "</a>";
|
||||||
}
|
}
|
||||||
makeAlert(title, text, type)
|
var newAlert = makeAlert(title, text, type)
|
||||||
.addClass("linewrap qfalert qf-" + type)
|
.addClass("linewrap qfalert qf-" + type)
|
||||||
.appendTo($("#queuefail"));
|
.appendTo($("#queuefail"));
|
||||||
|
newAlert.find(".alert").data("reason", data.msg);
|
||||||
}
|
}
|
||||||
|
|
||||||
function setupChanlogFilter(data) {
|
function setupChanlogFilter(data) {
|
||||||
|
|
Loading…
Reference in New Issue