From b99fe76f091719080c1610af6d1f2d605377109a Mon Sep 17 00:00:00 2001 From: Gerard Smit Date: Fri, 13 Oct 2023 21:27:52 +0200 Subject: [PATCH] Fixed JavaScript error --- .../JavaScript Libraries/DnnPlugins/dnn.jquery.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/DNN Platform/JavaScript Libraries/DnnPlugins/dnn.jquery.js b/DNN Platform/JavaScript Libraries/DnnPlugins/dnn.jquery.js index ba9dd2b5d35..7b9e348428a 100644 --- a/DNN Platform/JavaScript Libraries/DnnPlugins/dnn.jquery.js +++ b/DNN Platform/JavaScript Libraries/DnnPlugins/dnn.jquery.js @@ -4314,10 +4314,14 @@ }); }; + function registerEvents() { + Sys.WebForms.PageRequestManager.getInstance().add_beginRequest(saveRgDataDivScrollTop); + Sys.WebForms.PageRequestManager.getInstance().add_endRequest(dnnInitCustomisedCtrls); + } + window.__rgDataDivScrollTopPersistArray = []; $(document).ajaxComplete(dnnInitCustomisedCtrls); - Sys.WebForms.PageRequestManager.getInstance().add_beginRequest(saveRgDataDivScrollTop); - Sys.WebForms.PageRequestManager.getInstance().add_endRequest(dnnInitCustomisedCtrls); $(dnnInitCustomisedCtrls); + $(registerEvents); handlerSendVerificationMailLink(); })(jQuery); \ No newline at end of file