From 7634b96744222f71a5faad853ec8473f84f0bdd0 Mon Sep 17 00:00:00 2001 From: Massimo Melina Date: Wed, 10 Jun 2020 20:27:11 +0200 Subject: [PATCH] tpl: using HFS.sid we can move ajax() where it belongs --- default.tpl | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/default.tpl b/default.tpl index 58e1fae..a8a5593 100644 --- a/default.tpl +++ b/default.tpl @@ -26,10 +26,10 @@ def 3.0 - + - + [] {.$common-head.} @@ -80,18 +80,6 @@ def 3.0 .} }//changePwd - function ajax(method, data, cb) { - if (!data) - data = {}; - data.token = "{.cookie|HFS_SID_.}"; - showLoading() - return $.post("?mode=section&id=ajax."+method, data).then(function(){ - if (cb) - showLoading(false) - ;(cb||getStdAjaxCB()).apply(this,arguments) - }, ajaxError); - }//ajax -