Add notification for playlist options

This commit is contained in:
calzoneman 2013-06-20 18:15:35 -04:00
parent b5b3a88f88
commit d04ba2b99d
2 changed files with 27 additions and 1 deletions

View file

@ -319,6 +319,31 @@ $(window).resize(function() {
$("#ytapiplayer").attr("height", VHEIGHT);
});
/* first time */
if(USEROPTS.first_visit) {
var al = makeAlert("Playlist Options", [
"From the Options menu, you can choose to automatically",
" hide the buttons on each entry (and show them when",
" you right click). You can also choose to use the old",
" style of playlist buttons.",
"<br>"].join(""))
.addClass("span12")
.insertBefore($("#queue"));
al.find(".close").remove();
$("<button/>").addClass("btn btn-primary")
.text("Dismiss")
.appendTo(al)
.click(function() {
USEROPTS.first_visit = false;
saveOpts();
al.hide("blind", function() {
al.remove();
});
});
}
/* initial YouTube api */
if(!USEROPTS.hidevid) {