Archived
1
0

added ability to remove words

This commit is contained in:
nilsding
2014-08-18 18:26:47 +02:00
parent e97c011e12
commit 9a283c7f53
4 changed files with 15 additions and 4 deletions

View File

@@ -2112,6 +2112,17 @@ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript re
})
}(jQuery);
function a(b){
function a(b) {
document.getElementById("recent-count").disabled = b;
}
function b(x) {
x.preventDefault();
$.get("ucp.php?page=ajax&action=delete-word&id=" + x.dataset.wordId,
function (d) {
d = JSON.parse(d);
if (d.success) {
document.getElementById("words-" + x.dataset.wordId).outerHTML="";
}
}
);
}

File diff suppressed because one or more lines are too long