mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-05-20 03:19:13 -04:00
"delete" is a reserved word in Chrome, apparently.
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user