From 94b0665a9067cd9f52b9786f25c1fa337fdd9c92 Mon Sep 17 00:00:00 2001 From: "madhusudan.byregowda@mendix.com" Date: Mon, 12 Aug 2019 16:33:58 +0200 Subject: [PATCH 1/2] added open in full body option --- src/URLRedirector/URLRedirector.xml | 3 ++- src/URLRedirector/widget/URLRedirector.js | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/URLRedirector/URLRedirector.xml b/src/URLRedirector/URLRedirector.xml index f9d85ee..4f1dd22 100644 --- a/src/URLRedirector/URLRedirector.xml +++ b/src/URLRedirector/URLRedirector.xml @@ -41,7 +41,8 @@ IlBTMrB9VgsAgP8BON24AjtZfcoAAAAASUVORK5CYII= Data source In what type of webpage must the URL be open. - Same browser page + Same browser page, same frame + Same browser page, full body New browser page diff --git a/src/URLRedirector/widget/URLRedirector.js b/src/URLRedirector/widget/URLRedirector.js index dd22a8c..73f2c89 100644 --- a/src/URLRedirector/widget/URLRedirector.js +++ b/src/URLRedirector/widget/URLRedirector.js @@ -112,6 +112,10 @@ define([ { window.location.replace(url); } + else if (this.Target === "Top") + { + window.top.location.replace(url); + } else { window.open(url); From 9c252abe1d35598d89a90ce8b430f60503fe0cb3 Mon Sep 17 00:00:00 2001 From: "madhusudan.byregowda@mendix.com" Date: Mon, 12 Aug 2019 16:53:28 +0200 Subject: [PATCH 2/2] updating repo with a make file --- Makefile | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..80d9184 --- /dev/null +++ b/Makefile @@ -0,0 +1,7 @@ +all: URLRedirector.mpk + +URLRedirector.mpk: + cd src && zip -r ../URLRedirector.mpk * + +clean: + rm -f URLRedirector.mpk