|
@@ -16,30 +16,14 @@
|
|
|
devLoadingPanelUpdate.Show();
|
|
devLoadingPanelUpdate.Show();
|
|
|
$.ajax({
|
|
$.ajax({
|
|
|
method: "POST",
|
|
method: "POST",
|
|
|
- url: '@Url.Action("CheckUpdate", "Admin")',
|
|
|
|
|
|
|
+ url: '@Url.Action("PartialCheckUpdate", "Admin")',
|
|
|
success: function (response) {
|
|
success: function (response) {
|
|
|
if (!response) return;
|
|
if (!response) return;
|
|
|
- devLoadingPanelUpdate.Hide();
|
|
|
|
|
- if (response.IsUpdateAvailable == true) {
|
|
|
|
|
- devPopupControlDoUpdate.Show();
|
|
|
|
|
- }
|
|
|
|
|
- },
|
|
|
|
|
- error: function () {
|
|
|
|
|
- devLoadingPanelUpdate.Hide();
|
|
|
|
|
- alert("error occured");
|
|
|
|
|
- }
|
|
|
|
|
- });
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- function update() {
|
|
|
|
|
- devPopupControlDoUpdate.Hide();
|
|
|
|
|
- devLoadingPanelUpdate.SetText("Update wird durchgeführt und die Anwendung anschließend neu gestartet... bitte warten!");
|
|
|
|
|
- devLoadingPanelUpdate.Show();
|
|
|
|
|
- $.ajax({
|
|
|
|
|
- method: "POST",
|
|
|
|
|
- url: '@Url.Action("Update", "Admin")',
|
|
|
|
|
- success: function (response) {
|
|
|
|
|
- window.location = '@Url.Action("ViewUpdateSuccess", "Admin")'
|
|
|
|
|
|
|
+ setTimeout(function () {
|
|
|
|
|
+ devLoadingPanelUpdate.Hide();
|
|
|
|
|
+ $(".updateContainer").remove();
|
|
|
|
|
+ $("body").append(response);
|
|
|
|
|
+ }, 200);
|
|
|
},
|
|
},
|
|
|
error: function () {
|
|
error: function () {
|
|
|
devLoadingPanelUpdate.Hide();
|
|
devLoadingPanelUpdate.Hide();
|
|
@@ -80,7 +64,7 @@
|
|
|
Aktuelle Programmpaketversion
|
|
Aktuelle Programmpaketversion
|
|
|
</h3>
|
|
</h3>
|
|
|
<div style="font-size: 40px; margin: 12px 0">
|
|
<div style="font-size: 40px; margin: 12px 0">
|
|
|
- @GreenTree.Nachtragsmanagement.Core.AppendixVersion.CurrentVersion
|
|
|
|
|
|
|
+ v<span>@GreenTree.Nachtragsmanagement.Core.AppendixVersion.CurrentVersion</span>
|
|
|
</div>
|
|
</div>
|
|
|
@if (userContext.CurrentUser.HasFunction("Administration-AppInfo-Update"))
|
|
@if (userContext.CurrentUser.HasFunction("Administration-AppInfo-Update"))
|
|
|
{
|
|
{
|
|
@@ -109,14 +93,4 @@
|
|
|
t.Text = "Es wird nach Updates geprüft... bitte warten!";
|
|
t.Text = "Es wird nach Updates geprüft... bitte warten!";
|
|
|
t.Modal = true;
|
|
t.Modal = true;
|
|
|
t.Styles.LoadingDiv.Opacity = 0;
|
|
t.Styles.LoadingDiv.Opacity = 0;
|
|
|
-}).GetHtml()
|
|
|
|
|
-
|
|
|
|
|
-@Html.Partial("~/Views/Shared/_PopupDialogYesNo.cshtml", new GreenTree.Nachtragsmanagement.Web.Models.Global.YesNoDialogModel
|
|
|
|
|
-{
|
|
|
|
|
- PopupName = "devPopupControlDoUpdate",
|
|
|
|
|
- Content = "<div class='dialogText' style='padding: 12px'>" +
|
|
|
|
|
- "Es ist ein Update verfügbar. Sind Sie sicher, dass Sie das Update durchführen möchten? " +
|
|
|
|
|
- "Der Vorgang kann einige Zeit in Anspruch nehmen.</div>",
|
|
|
|
|
- HeaderText = "Update durchführen",
|
|
|
|
|
- YesFunction = "function (s, e) { update(); }"
|
|
|
|
|
-})
|
|
|
|
|
|
|
+}).GetHtml()
|