mirror of https://github.com/calzoneman/sync.git
Dedupe playlist option notification
This commit is contained in:
parent
995b92ebed
commit
17c733be44
2
user.js
2
user.js
|
@ -204,8 +204,10 @@ User.prototype.initCallbacks = function() {
|
|||
|
||||
this.socket.on("chatMsg", function(data) {
|
||||
if(this.channel != null) {
|
||||
if(data.msg.indexOf("/afk") == -1) {
|
||||
this.setAFK(false);
|
||||
this.autoAFK();
|
||||
}
|
||||
this.channel.tryChat(this, data);
|
||||
}
|
||||
}.bind(this));
|
||||
|
|
|
@ -837,7 +837,7 @@ function handlePermissionChange() {
|
|||
hasPermission("playlistjump") ||
|
||||
hasPermission("playlistdelete") ||
|
||||
hasPermission("settemp")) {
|
||||
if(USEROPTS.first_visit) {
|
||||
if(USEROPTS.first_visit && $("#plonotification").length == 0) {
|
||||
var al = makeAlert("Playlist Options", [
|
||||
"From the Options menu, you can choose to automatically",
|
||||
" hide the buttons on each entry (and show them when",
|
||||
|
@ -845,6 +845,7 @@ function handlePermissionChange() {
|
|||
" style of playlist buttons.",
|
||||
"<br>"].join(""))
|
||||
.addClass("span12")
|
||||
.attr("id", "plonotification")
|
||||
.insertBefore($("#queue"));
|
||||
|
||||
al.find(".close").remove();
|
||||
|
|
Loading…
Reference in New Issue