mirror of
https://github.com/abap2UI5/abap2UI5.git
synced 2025-04-29 02:58:20 +08:00
[create-pull-request] automated change (#1795)
Co-authored-by: oblomov-dev <oblomov-dev@users.noreply.github.com>
This commit is contained in:
parent
4c2c28259e
commit
e0f6fa16a4
|
@ -1059,7 +1059,7 @@ CLASS z2ui5_cl_app_app_js IMPLEMENTATION.
|
||||||
`}` && |\n| &&
|
`}` && |\n| &&
|
||||||
`);` && |\n| &&
|
`);` && |\n| &&
|
||||||
`` && |\n| &&
|
`` && |\n| &&
|
||||||
`sap.ui.define("z2ui5/Dirty", ["sap/ui/core/Control", "sap/ushell/Container"], (Control, Container) => {` && |\n| &&
|
`sap.ui.define("z2ui5/Dirty", ["sap/ui/core/Control"], (Control) => {` && |\n| &&
|
||||||
` "use strict";` && |\n| &&
|
` "use strict";` && |\n| &&
|
||||||
` return Control.extend("z2ui5.Dirty", {` && |\n| &&
|
` return Control.extend("z2ui5.Dirty", {` && |\n| &&
|
||||||
` metadata: {` && |\n| &&
|
` metadata: {` && |\n| &&
|
||||||
|
@ -1070,15 +1070,22 @@ CLASS z2ui5_cl_app_app_js IMPLEMENTATION.
|
||||||
` }` && |\n| &&
|
` }` && |\n| &&
|
||||||
` },` && |\n| &&
|
` },` && |\n| &&
|
||||||
` setIsDirty(val) {` && |\n| &&
|
` setIsDirty(val) {` && |\n| &&
|
||||||
` if (Container) {` && |\n| &&
|
`` && |\n| &&
|
||||||
` Container.setDirtyFlag(val);` && |\n| &&
|
` sap.ui.require([ "sap/ushell/Container"` && |\n| &&
|
||||||
` } else {` && |\n| &&
|
` ], async (Container) => {` && |\n| &&
|
||||||
` window.onbeforeunload = function (e) {` && |\n| &&
|
`` && |\n| &&
|
||||||
|
` if (Container) {` && |\n| &&
|
||||||
|
` Container.setDirtyFlag(val);` && |\n| &&
|
||||||
|
` } else {` && |\n| &&
|
||||||
|
` window.onbeforeunload = function (e) {` && |\n| &&
|
||||||
` if (val) {` && |\n| &&
|
` if (val) {` && |\n| &&
|
||||||
` e.preventDefault();` && |\n| &&
|
` e.preventDefault();` && |\n| &&
|
||||||
` }` && |\n| &&
|
` }` && |\n| &&
|
||||||
` }` && |\n| &&
|
` }` && |\n| &&
|
||||||
` }` && |\n| &&
|
` }` && |\n| &&
|
||||||
|
`` && |\n| &&
|
||||||
|
` });` && |\n| &&
|
||||||
|
`` && |\n| &&
|
||||||
` },` && |\n| &&
|
` },` && |\n| &&
|
||||||
` renderer(oRm, oControl) { }` && |\n| &&
|
` renderer(oRm, oControl) { }` && |\n| &&
|
||||||
` });` && |\n| &&
|
` });` && |\n| &&
|
||||||
|
|
Loading…
Reference in New Issue
Block a user