From 732d5f674f57339b54795791328ed7be92cb3ec1 Mon Sep 17 00:00:00 2001 From: Pavel Loginov Date: Sun, 22 Sep 2019 21:16:39 +0300 Subject: [PATCH] v3.4.9 --- app/templates/hapservers.html | 88 ++++++++++++++++++----------------- inc/script.js | 6 +++ inc/users.js | 2 +- 3 files changed, 52 insertions(+), 44 deletions(-) diff --git a/app/templates/hapservers.html b/app/templates/hapservers.html index e7863368..46861fa8 100644 --- a/app/templates/hapservers.html +++ b/app/templates/hapservers.html @@ -1,50 +1,52 @@ {% extends "base.html" %} {% block content %} -{% for s in servers %} -
-
-
- - {% if s.5 != False %} - - {% else %} - - {% endif %} - - {{s.1}} - - {% if role <= 1 %} - - - start - - - stop - - - restart - - - {% endif %} -
-
- {{s.3}} -
- {{s.5.0.0}} {{s.5.0.1}} -
- -{% endfor %} diff --git a/inc/script.js b/inc/script.js index c59f6975..be4126bd 100644 --- a/inc/script.js +++ b/inc/script.js @@ -229,7 +229,13 @@ function showOverviewServer(name,ip,id) { $(".div-pannel").css('display', 'block'); $(".div-pannel").css('padding-top', '10px'); $(".div-pannel").css('height', '70px'); + $("#div-pannel-"+id).insertBefore('#up-pannel') $("#ajax-server-"+id).html(data); + $("#ajax-server-"+id).addClass( "update", 1000 ); + setTimeout(function() { + $("#ajax-server-"+id).removeClass( "update" ); + $("#ajax-server-"+id).css('background-color', '#f9fff8'); + }, 2500 ); // $.getScript('/inc/overview.js'); } } ); diff --git a/inc/users.js b/inc/users.js index 3bef4afe..fca33671 100644 --- a/inc/users.js +++ b/inc/users.js @@ -146,7 +146,7 @@ $( function() { } else if (data.indexOf('Complete!') != '-1'){ $('.alert-danger').remove(); $('.alert-warning').remove(); - $("#ajax").html('
'+data+''); + $("#ajax").html('
Update was success!'); } else if (data.indexOf('but not installed') != '-1') { $('.alert-danger').remove(); $('.alert-warning').remove();