mirror of
https://github.com/Karaka-Management/jsOMS.git
synced 2026-02-15 16:58:42 +00:00
continue implementation
This commit is contained in:
parent
80aa223e5c
commit
f56259e181
|
|
@ -107,17 +107,18 @@ export class GeneralUI
|
||||||
if (this.getAttribute('target') === '_blank'
|
if (this.getAttribute('target') === '_blank'
|
||||||
|| this.getAttribute('data-target') === '_blank'
|
|| this.getAttribute('data-target') === '_blank'
|
||||||
|| event.button === 1
|
|| event.button === 1
|
||||||
|| uri.indexOf('://') > 0
|
|
||||||
) {
|
) {
|
||||||
window.open(UriFactory.build(uri), '_blank');
|
window.open(UriFactory.build(uri), '_blank');
|
||||||
} else if (this.getAttribute('data-redirect') !== null) {
|
} else if (this.getAttribute('data-redirect') !== null) {
|
||||||
uri = jsOMS.rtrim(window.omsApp.request.getRootPath(), '/') + '/' + jsOMS.ltrim(uri, '/');
|
window.location.href = uri.indexOf('://') > 0
|
||||||
window.location.href = uri;
|
? uri
|
||||||
|
: jsOMS.rtrim(window.omsApp.request.getRootPath(), '/') + '/' + jsOMS.ltrim(uri, '/');
|
||||||
} else {
|
} else {
|
||||||
// window.location = UriFactory.build(uri);
|
// window.location = UriFactory.build(uri);
|
||||||
// @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 = jsOMS.rtrim(window.omsApp.request.getRootPath(), '/') + '/' + jsOMS.ltrim(uri, '/');
|
window.location.href = uri.indexOf('://') > 0
|
||||||
window.location.href = uri;
|
? uri
|
||||||
|
: jsOMS.rtrim(window.omsApp.request.getRootPath(), '/') + '/' + jsOMS.ltrim(uri, '/');
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@todo: Commented out until ObserverMutation is implemented
|
@todo: Commented out until ObserverMutation is implemented
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user