From 3ba69d542dc7f748f147c720ec4c5f8f588ecac3 Mon Sep 17 00:00:00 2001 From: nathan Date: Mon, 27 May 2024 10:49:06 -0600 Subject: [PATCH] Framework WIP - Get admin tree loading in side - Popups working --- admin/js/app.ts | 9 +++- admin/templates/default/index.xet | 2 +- kdots/js/EgwFramework.ts | 79 ++++++++++++++++++++++++++++--- kdots/js/EgwFrameworkApp.ts | 9 +++- 4 files changed, 89 insertions(+), 10 deletions(-) diff --git a/admin/js/app.ts b/admin/js/app.ts index 484c9ea54f..a949957bc6 100644 --- a/admin/js/app.ts +++ b/admin/js/app.ts @@ -423,7 +423,14 @@ class AdminApp extends EgwApp if(!_data || _data.type != undefined) return; // Insert the content, etemplate will load into it - jQuery(this.ajax_target.getDOMNode()).append(typeof _data === 'string' ? _data : _data[0]); + if(typeof _data === "string" || typeof _data[0] !== "undefined") + { + jQuery(this.ajax_target.getDOMNode()).append(typeof _data === 'string' ? _data : _data[0]); + } + else if(typeof _data.DOMNodeID == "string") + { + this.ajax_target.setAttribute("id", _data.DOMNodeID); + } } /** diff --git a/admin/templates/default/index.xet b/admin/templates/default/index.xet index bcebf05698..45eef7a5a8 100644 --- a/admin/templates/default/index.xet +++ b/admin/templates/default/index.xet @@ -83,7 +83,7 @@