ADD le slap
[euphorik.git] / js / euphorik.js
index 2b885ab..7bab324 100755 (executable)
@@ -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