Skip to content

Instantly share code, notes, and snippets.

@acgotaku
Created May 14, 2014 09:27
Show Gist options
  • Save acgotaku/4577929be8b4d6ce8dd6 to your computer and use it in GitHub Desktop.
Save acgotaku/4577929be8b4d6ce8dd6 to your computer and use it in GitHub Desktop.
clear xf resource limited.
EventHandler.check_dirty_words = function(str, has_dirty_func, no_dirty_func) {
jQuery.ajax({
url: '/handler/lixian/check_dirty_words.php',
dataType: 'json',
type: 'post',
data: {
file_msg: str
},
success: function(data) {
if (data.is_dirty === 1) {
no_dirty_func();
} else {
no_dirty_func();
}
}
});
return;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment