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) {
|
this.socket.on("chatMsg", function(data) {
|
||||||
if(this.channel != null) {
|
if(this.channel != null) {
|
||||||
|
if(data.msg.indexOf("/afk") == -1) {
|
||||||
this.setAFK(false);
|
this.setAFK(false);
|
||||||
this.autoAFK();
|
this.autoAFK();
|
||||||
|
}
|
||||||
this.channel.tryChat(this, data);
|
this.channel.tryChat(this, data);
|
||||||
}
|
}
|
||||||
}.bind(this));
|
}.bind(this));
|
||||||
|
|
|
@ -837,7 +837,7 @@ function handlePermissionChange() {
|
||||||
hasPermission("playlistjump") ||
|
hasPermission("playlistjump") ||
|
||||||
hasPermission("playlistdelete") ||
|
hasPermission("playlistdelete") ||
|
||||||
hasPermission("settemp")) {
|
hasPermission("settemp")) {
|
||||||
if(USEROPTS.first_visit) {
|
if(USEROPTS.first_visit && $("#plonotification").length == 0) {
|
||||||
var al = makeAlert("Playlist Options", [
|
var al = makeAlert("Playlist Options", [
|
||||||
"From the Options menu, you can choose to automatically",
|
"From the Options menu, you can choose to automatically",
|
||||||
" hide the buttons on each entry (and show them when",
|
" hide the buttons on each entry (and show them when",
|
||||||
|
@ -845,6 +845,7 @@ function handlePermissionChange() {
|
||||||
" style of playlist buttons.",
|
" style of playlist buttons.",
|
||||||
"<br>"].join(""))
|
"<br>"].join(""))
|
||||||
.addClass("span12")
|
.addClass("span12")
|
||||||
|
.attr("id", "plonotification")
|
||||||
.insertBefore($("#queue"));
|
.insertBefore($("#queue"));
|
||||||
|
|
||||||
al.find(".close").remove();
|
al.find(".close").remove();
|
||||||
|
|
Loading…
Reference in New Issue