Dedupe playlist option notification

This commit is contained in:
calzoneman 2013-07-29 20:06:01 -04:00
parent 995b92ebed
commit 17c733be44
2 changed files with 6 additions and 3 deletions

View File

@ -204,8 +204,10 @@ User.prototype.initCallbacks = function() {
this.socket.on("chatMsg", function(data) {
if(this.channel != null) {
this.setAFK(false);
this.autoAFK();
if(data.msg.indexOf("/afk") == -1) {
this.setAFK(false);
this.autoAFK();
}
this.channel.tryChat(this, data);
}
}.bind(this));

View File

@ -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();