mirror of
https://github.com/overleaf/overleaf.git
synced 2024-10-31 21:21:03 -04:00
34 lines
700 B
CoffeeScript
34 lines
700 B
CoffeeScript
|
require [
|
||
|
"main"
|
||
|
"libs/jquery.tablesorter"
|
||
|
], ()->
|
||
|
$(document).ready ()->
|
||
|
$('#connected-users').tablesorter()
|
||
|
|
||
|
$('button#disconnectAll').click (event)->
|
||
|
event.preventDefault()
|
||
|
$.ajax
|
||
|
url: "/admin/dissconectAllUsers",
|
||
|
type:'POST',
|
||
|
data:
|
||
|
_csrf: $(@).data("csrf")
|
||
|
success: (data)->
|
||
|
|
||
|
$('button#closeEditor').click (event)->
|
||
|
event.preventDefault()
|
||
|
$.ajax
|
||
|
url: "/admin/closeEditor",
|
||
|
type:'POST',
|
||
|
data:
|
||
|
_csrf: $(@).data("csrf")
|
||
|
success: (data)->
|
||
|
|
||
|
$('button#pollTpds').click (event)->
|
||
|
event.preventDefault()
|
||
|
$.ajax
|
||
|
url: "/admin/pollUsersWithDropbox",
|
||
|
type:'POST',
|
||
|
data:
|
||
|
_csrf: $(@).data("csrf")
|
||
|
success: (data)->
|