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

@ -92,7 +92,8 @@ var USEROPTS = {
altsocket : getOrDefault("altsocket", false),
joinmessage : getOrDefault("joinmessage", true),
qbtn_hide : getOrDefault("qbtn_hide", false),
qbtn_idontlikechange : getOrDefault("qbtn_idontlikechange", false)
qbtn_idontlikechange : getOrDefault("qbtn_idontlikechange", false),
first_visit : getOrDefault("first_visit", true)
};
var Rank = {

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) {