summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrug <frugen@gmail.com>2013-12-17 15:36:40 -0500
committerFrug <frugen@gmail.com>2013-12-17 15:36:40 -0500
commit618dbb56e9bd2783cf38d9b15c27b6c83882f0a5 (patch)
treec074f35807dc49767a010a6a5846a3247583d552
parentf144890a94621077781a9a3a3c047341aeaa0f06 (diff)
downloadAJAX-Chat-618dbb56e9bd2783cf38d9b15c27b6c83882f0a5.zip
AJAX-Chat-618dbb56e9bd2783cf38d9b15c27b6c83882f0a5.tar.gz
AJAX-Chat-618dbb56e9bd2783cf38d9b15c27b6c83882f0a5.tar.bz2
XML values are strings
-rw-r--r--chat/js/chat.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/chat/js/chat.js b/chat/js/chat.js
index a4e71d5..9a93f5e 100644
--- a/chat/js/chat.js
+++ b/chat/js/chat.js
@@ -1127,7 +1127,7 @@ var ajaxChat = {
+ this.lang['userMenuWhereis']
+ '</a></li>';
}
- if(this.userRole === 2 || this.userRole === 3) {
+ if(this.userRole === '2' || this.userRole === '3') {
menu += '<li><a href="javascript:ajaxChat.insertMessageWrapper(\'/kick '
+ encodedUserName
+ ' \');">'
@@ -1161,11 +1161,11 @@ var ajaxChat = {
+ '<li><a href="javascript:ajaxChat.insertMessageWrapper(\'/nick \');">'
+ this.lang['userMenuNick']
+ '</a></li>';
- if(this.userRole === 1 || this.userRole === 2 || this.userRole === 3) {
+ if(this.userRole === '1' || this.userRole === '2' || this.userRole === '3') {
menu += '<li><a href="javascript:ajaxChat.sendMessageWrapper(\'/join\');">'
+ this.lang['userMenuEnterPrivateRoom']
+ '</a></li>';
- if(this.userRole === 2 || this.userRole === 3) {
+ if(this.userRole === '2' || this.userRole === '3') {
menu += '<li><a href="javascript:ajaxChat.sendMessageWrapper(\'/bans\');">'
+ this.lang['userMenuBans']
+ '</a></li>';
@@ -1318,10 +1318,10 @@ var ajaxChat = {
},
isAllowedToDeleteMessage: function(messageID, userID, userRole, channelID) {
- if((((this.userRole === 1 && this.allowUserMessageDelete && (userID === this.userID ||
+ if((((this.userRole === '1' && this.allowUserMessageDelete && (userID === this.userID ||
parseInt(channelID) === parseInt(this.userID)+this.privateMessageDiff ||
parseInt(channelID) === parseInt(this.userID)+this.privateChannelDiff)) ||
- this.userRole === 2) && userRole !== 3 && userRole !== 4) || this.userRole === 3) {
+ this.userRole === '2') && userRole !== '3' && userRole !== '4') || this.userRole === '3') {
return true;
}
return false;