mirror of
https://github.com/rejetto/hfs2.git
synced 2025-12-19 10:03:56 +01:00
fix: (recent) broken ajax() calls
This commit is contained in:
parent
70947f179c
commit
18f0da77d4
@ -618,7 +618,8 @@ function ajax(method, data, cb) {
|
|||||||
data = {};
|
data = {};
|
||||||
data.token = HFS.sid; // avoid CSRF attacks
|
data.token = HFS.sid; // avoid CSRF attacks
|
||||||
showLoading()
|
showLoading()
|
||||||
return $.post("/~ajax."+method, data).then(function(){
|
// calling this section 'under' the current folder will affect permissions commands like {.get|can delete.}
|
||||||
|
return $.post("?mode=section&id=ajax."+method, data).then(function(){
|
||||||
if (cb)
|
if (cb)
|
||||||
showLoading(false)
|
showLoading(false)
|
||||||
;(cb||getStdAjaxCB()).apply(this,arguments)
|
;(cb||getStdAjaxCB()).apply(this,arguments)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user