X-Git-Url: http://git.euphorik.ch/?p=euphorik.git;a=blobdiff_plain;f=js%2Feuphorik.js;h=7bab324f9b7734c969760aef2c8589d41a22f21c;hp=2b885ab0ab2fedf4444232da30dfee4d422545c2;hb=eae50232e73fca26d6f631c8177cbea649e5036e;hpb=9d95f5af441fda194444405983e4d110c2514680 diff --git a/js/euphorik.js b/js/euphorik.js index 2b885ab..7bab324 100755 --- a/js/euphorik.js +++ b/js/euphorik.js @@ -771,6 +771,31 @@ Client.prototype.majMenu = function() } } + +Client.prototype.slap = function(userId) +{ + var thisClient = this + + jQuery.ajax({ + type: "POST", + url: "request", + dataType: "json", + data: this.util.jsonVersAction( + { + "action" : "slap", + "cookie" : thisClient.cookie, + "user_id" : userId + }), + success: + function(data) + { + if (data["reply"] == "error") + thisClient.util.messageDialogue(data["error_message"]) + } + }) +} + + Client.prototype.ban = function(userId, minutes) { var thisClient = this