mirror of
https://github.com/Karaka-Management/jsOMS.git
synced 2026-02-11 07:08:40 +00:00
fix demoSetup
This commit is contained in:
parent
7dbbd69577
commit
ee62ccd539
|
|
@ -118,6 +118,11 @@ export class GeneralUI
|
||||||
// @todo : consider to implement the line above again. why was it removed?
|
// @todo : consider to implement the line above again. why was it removed?
|
||||||
uri = window.omsApp.request.getRootPath() + uri;
|
uri = window.omsApp.request.getRootPath() + uri;
|
||||||
|
|
||||||
|
window.location.assign(uri);
|
||||||
|
console.log('test');
|
||||||
|
|
||||||
|
/*
|
||||||
|
@todo: Commented out until ObserverMutation is implemented
|
||||||
fetch(UriFactory.build(uri))
|
fetch(UriFactory.build(uri))
|
||||||
.then(response => response.text())
|
.then(response => response.text())
|
||||||
.then((html) => {
|
.then((html) => {
|
||||||
|
|
@ -139,11 +144,10 @@ export class GeneralUI
|
||||||
|
|
||||||
this.parentNode.remove();
|
this.parentNode.remove();
|
||||||
history.pushState({}, null, UriFactory.build(uri));
|
history.pushState({}, null, UriFactory.build(uri));
|
||||||
/* This is not working as it reloads the page ?!
|
// This is not working as it reloads the page ?!
|
||||||
document.open();
|
// document.open();
|
||||||
document.write(html);
|
// document.write(html);
|
||||||
document.close();
|
// document.close();
|
||||||
*/
|
|
||||||
// @todo: fix memory leak which most likely exists because of continous binding without removing binds
|
// @todo: fix memory leak which most likely exists because of continous binding without removing binds
|
||||||
window.omsApp.reInit();
|
window.omsApp.reInit();
|
||||||
}
|
}
|
||||||
|
|
@ -166,11 +170,10 @@ export class GeneralUI
|
||||||
}
|
}
|
||||||
|
|
||||||
history.pushState({}, null, UriFactory.build(uri));
|
history.pushState({}, null, UriFactory.build(uri));
|
||||||
/* This is not working as it reloads the page ?!
|
// This is not working as it reloads the page ?!
|
||||||
document.open();
|
// document.open();
|
||||||
document.write(html);
|
// document.write(html);
|
||||||
document.close();
|
// document.close();
|
||||||
*/
|
|
||||||
// @todo: fix memory leak which most likely exists because of continous binding without removing binds
|
// @todo: fix memory leak which most likely exists because of continous binding without removing binds
|
||||||
window.omsApp.reInit();
|
window.omsApp.reInit();
|
||||||
|
|
||||||
|
|
@ -181,6 +184,7 @@ export class GeneralUI
|
||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
console.warn(error);
|
console.warn(error);
|
||||||
});
|
});
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -9,4 +9,4 @@ describe('FormTest', function ()
|
||||||
afterEach(function ()
|
afterEach(function ()
|
||||||
{
|
{
|
||||||
});
|
});
|
||||||
}
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user