Gazelle/static/functions/rippy.js
2013-03-09 08:00:18 +00:00

19 lines
514 B
JavaScript

function say() {
ajax.get("ajax.php?action=rippy", function(response) {
response = JSON.parse(response);
if (response['Message']) {
var say = response['Message'];
if(response['From']) {
say += "<br/><a href='user.php?action=rippy&amp;to=" + response['From'] + "' class='brackets'>Ripback</a>";
}
$('#rippywrap').raw().style.display = "";
$('#rippy-says').raw().innerHTML = say;
$('#bubble').raw().style.display = "block";
}
});
}
function rippyclick() {
$('.rippywrap').remove();
}