popover in nested view fix (#571)

* Update README.md

* update popover logic

* nested popover fix
This commit is contained in:
oblomov 2023-09-27 18:16:31 +02:00 committed by GitHub
parent 11da1c198a
commit 989c03a370
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -173,6 +173,9 @@ CLASS Z2UI5_CL_FW_HTTP_HANDLER IMPLEMENTATION.
` if (oControl === undefined) {` && |\n| &&
` oControl = sap.z2ui5.oView.byId(sap.z2ui5.oResponse.PARAMS.S_POPOVER.OPEN_BY_ID);` && |\n| &&
` }` && |\n| &&
` if (oControl === undefined) {` && |\n| &&
` oControl = sap.z2ui5.oViewNest.byId(sap.z2ui5.oResponse.PARAMS.S_POPOVER.OPEN_BY_ID);` && |\n| &&
` }` && |\n| &&
` oFragment.openBy(oControl);` && |\n| &&
` sap.z2ui5.oViewPopover = oFragment;` && |\n| &&
` });` && |\n| &&
@ -259,8 +262,8 @@ CLASS Z2UI5_CL_FW_HTTP_HANDLER IMPLEMENTATION.
` },` && |\n| &&
|\n| &&
` onEvent: function (...args) {` && |\n| &&
` if ( sap.z2ui5.isBusy ) { if( sap.z2ui5.isBusy == true ){ sap.z2ui5.b = new sap.m.BusyDialog(); sap.z2ui5.b.open(); return; } } ` &&
` sap.z2ui5.isBusy = true; ` &&
` if ( sap.z2ui5.isBusy ) { if( sap.z2ui5.isBusy == true ){ sap.z2ui5.b = new sap.m.BusyDialog(); sap.z2ui5.b.open(); return; } } ` &&
` sap.z2ui5.isBusy = true; ` &&
` if (!window.navigator.onLine) {` && |\n| &&
` sap.m.MessageBox.alert('No internet connection! Please reconnect to the server and try again.');` && |\n| &&
` sap.z2ui5.isBusy = false; ` && |\n| &&