"delete" is a reserved word in Chrome, apparently.

This commit is contained in:
Bharat Mediratta
2009-01-08 03:05:53 +00:00
parent 8f9738e6d3
commit e9d61d5f9d

View File

@@ -9,7 +9,7 @@
var delete_url =
"<?= url::site("admin/comments/delete/__ID__?csrf=" . access::csrf_token()) ?>";
function delete(id) {
function del(id) {
$.get(delete_url.replace("__ID__", id));
$("#gComment-" + id).slideUp();
}
@@ -122,7 +122,7 @@
<? endif ?>
<li>
<a href="javascript:delete(<?=$comment->id?>)">
<a href="javascript:del(<?=$comment->id?>)">
<?= _("Delete") ?>
</a>
</li>