From 7061119d09ac48403df6c9668baa097af3d35f91 Mon Sep 17 00:00:00 2001 From: Arne Morken Date: Fri, 13 Dec 2024 23:36:27 +0100 Subject: [PATCH] dbUpdateSuccess(): Send parameters to refresh (cbExecute) --- view/anyModel.js | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/view/anyModel.js b/view/anyModel.js index bbaa1d0..d411265 100644 --- a/view/anyModel.js +++ b/view/anyModel.js @@ -2249,8 +2249,17 @@ anyModel.prototype.dbUpdateSuccess = function (context,serverdata,options) } } } - if (self.cbExecute && self.auto_refresh && options.auto_refresh !== false) - self.cbExecute(); + if (self.cbExecute && self.auto_refresh && options.auto_refresh !== false) { + let params = {}; + params.data = options.data; + params.mode = options.mode; + params.type = options.type; + params.par_data = options.par_data; + params.par_id = options.par_id; + params.par_mode = options.par_mode; + params.par_type = options.par_type; + self.cbExecute(params); + } return context; }; // dbUpdateSuccess