This commit is contained in:
2023-03-13 08:13:18 +00:00
parent b6c4e025bc
commit 0da601e691
36 changed files with 215 additions and 245 deletions
@@ -125,7 +125,12 @@ var Unibase;
instance.appmanager = Unibase.Platform.Apps.Managers.AppManager.Instance();
instance.doctypemanager = Unibase.Platform.DataSources.Managers.DocTypeManager.Instance();
$("#" + containerid).find(".detail-close").click(function () {
window.parent.postMessage('clickToBack', '*');
if (!Unibase.Themes.Compact.Components.Index.Instance().isIframeObj.isListDetailPage) {
window.parent.postMessage('List-Details-page', '*');
}
else {
window.parent.postMessage('clickToBack', '*');
}
$('.txt_global_search').show();
$('.search_icon').removeClass("hidden");
$(this).removeClass("hidden");
+1 -1
View File
@@ -35,7 +35,7 @@ var Unibase;
this.currentUser = Unibase.Platform.Membership.Infos.Identity.currentUser;
this.isTouchScreen = ('ontouchstart' in window) || (navigator.msMaxTouchPoints > 0);
this.isIframe = false;
this.isIframeObj = { "isDetailsPage": false, "isNotifiPage": false, "isListPage": false, "isForm": false, "isPopupPage": false, "isDetailsForm": false };
this.isIframeObj = { "isDetailsPage": false, "isNotifiPage": false, "isListPage": false, "isForm": false, "isPopupPage": false, "isDetailsForm": false, "isListDetailPage": true };
}
init(callback) {
const instance = this;
@@ -233,10 +233,6 @@ var Unibase;
$("#" + panel).find('.modal-header .close').click();
window.parent.postMessage('closeForm', '*');
});
$("#" + panel).find("#btnDynamicSave").on("click", function () {
let formid = $("#" + panel + ' .modal-header #hf_FormId').val();
window.parent.postMessage(`save-form/${formid}`, '*');
});
}
if (Unibase.Themes.Providers.DetailHelper.isListStages) {
$("#" + panel).find(".btn_CloseForm ").on("click", function () {