mirror of https://github.com/calzoneman/sync.git
Add notification for playlist options
This commit is contained in:
parent
b5b3a88f88
commit
d04ba2b99d
|
@ -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 = {
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue