mirror of
https://github.com/rejetto/hfs2.git
synced 2025-12-19 10:03:56 +01:00
fix: (recent) broke ajax() calls
This commit is contained in:
parent
1e7bf6cfc4
commit
7cc712a245
@ -624,7 +624,7 @@ function ajax(method, data, cb) {
|
||||
data = {};
|
||||
data.token = HFS.sid; // avoid CSRF attacks
|
||||
showLoading()
|
||||
return $.post("?~ajax."+method, data).then(function(){
|
||||
return $.post("/~ajax."+method, data).then(function(){
|
||||
if (cb)
|
||||
showLoading(false)
|
||||
;(cb||getStdAjaxCB()).apply(this,arguments)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user