|
15 | 15 | @{ await Html.RenderPartialAsync("~/Areas/Admin/Views/Shared/_MessagesPartial.cshtml"); }
|
16 | 16 |
|
17 | 17 | <script type="text/javascript">
|
18 |
| - function openKenticoKontent() { |
| 18 | + function openKontent() { |
19 | 19 | var w = 800;
|
20 | 20 | var h = 800;
|
21 | 21 | var left = (window.screen.width / 2) - ((w / 2) + 10);
|
22 | 22 | var top = (window.screen.height / 2) - ((h / 2) + 50);
|
23 | 23 |
|
24 |
| - window.open("@(Config.Value.KenticoKontentUrl.TrimEnd('/'))/sample-site-configuration", "Kontent", |
| 24 | + window.open("@(Config.Value.KontentUrl.TrimEnd('/'))/sample-site-configuration", "Kontent", |
25 | 25 | "status=no,height=" + w + ",width=" + h + ",resizable=yes,left="
|
26 | 26 | + left + ",top=" + top + ",screenX=" + left + ",screenY="
|
27 | 27 | + top + ",toolbar=no,menubar=no,location=no,directories=no");
|
|
30 | 30 | window.addEventListener("message", receiveMessage, false);
|
31 | 31 |
|
32 | 32 | function receiveMessage(event) {
|
33 |
| - if (event.origin.toLowerCase() !== "@(Config.Value.KenticoKontentUrl.TrimEnd('/').ToLower())") |
| 33 | + if (event.origin.toLowerCase() !== "@(Config.Value.KontentUrl.TrimEnd('/').ToLower())") |
34 | 34 | return;
|
35 | 35 |
|
36 | 36 | if (!event.data.projectGuid)
|
|
47 | 47 | <section class="paper margin-top-xl">
|
48 | 48 | <h2 class="headline-medium">Get a Project ID</h2>
|
49 | 49 | <p class="margin-top-l">You may wish to either select from existing projects or create a new sample project. The app will be configured with its project ID.</p>
|
50 |
| - <button class="button button-primary margin-top-xl" onclick="openKenticoKontent()">Get Project ID from Kontent</button> |
| 50 | + <button class="button button-primary margin-top-xl" onclick="openKontent()">Get Project ID from Kontent</button> |
51 | 51 | @using (Html.BeginForm("UseSelected", "SelfConfig", FormMethod.Post, new { id = "set-configuration-from-kc" }))
|
52 | 52 | {
|
53 | 53 | @Html.HiddenFor(m => m.ProjectGuid, new { id = "project-guid-from-kc" })
|
|
0 commit comments