mirror of
https://github.com/neocities/neocities.git
synced 2025-07-21 10:06:00 +02:00
event deleting
This commit is contained in:
parent
6277a94a5b
commit
a4a2b5165b
14 changed files with 105 additions and 31 deletions
7
public/assets/scripts/news/event.js
Normal file
7
public/assets/scripts/news/event.js
Normal file
|
@ -0,0 +1,7 @@
|
|||
var Event = {
|
||||
delete: function(eventId, csrfToken) {
|
||||
$.post('/event/'+eventId+'/delete', {csrf_token: csrfToken}, function(res) {
|
||||
location.reload()
|
||||
})
|
||||
}
|
||||
}
|
1
public/assets/scripts/underscore-min.map
Normal file
1
public/assets/scripts/underscore-min.map
Normal file
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue