Initial xentral_oss_20.3.c9ffacf
This commit is contained in:
@@ -0,0 +1,56 @@
|
||||
img.statusicon {
|
||||
width:20px;
|
||||
}
|
||||
|
||||
fieldset table tr td:nth-child(1) {
|
||||
width: 170px;
|
||||
}
|
||||
|
||||
fieldset table tr td:nth-child(2) {
|
||||
width: 35px;
|
||||
}
|
||||
fieldset table tr td:nth-child(4) {
|
||||
width: 35px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
fieldset table tr td:nth-child(5) {
|
||||
width: 45px;
|
||||
}
|
||||
fieldset table
|
||||
{
|
||||
width:100%;
|
||||
}
|
||||
|
||||
input#reset {
|
||||
float: right !important;
|
||||
}
|
||||
|
||||
span.systemhealthnotification {
|
||||
height: 16px;
|
||||
width:16px;
|
||||
display: inline-block;
|
||||
vertical-align: middle;
|
||||
text-align: center;
|
||||
font-size: 16px;
|
||||
top: -7px;
|
||||
border-radius: 8px;
|
||||
position: relative;
|
||||
font-weight: bold;
|
||||
border: 1px solid;
|
||||
margin-right:3px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
img.reset {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
span.systemhealthnotification.inactive {
|
||||
color:#bbb;
|
||||
border-color: #bbb;
|
||||
}
|
||||
|
||||
span.systemhealthnotification.active {
|
||||
color:var(--warning);
|
||||
border-color: var(--warning);
|
||||
}
|
||||
@@ -0,0 +1,66 @@
|
||||
var SystemHealth = function ($) {
|
||||
"use strict";
|
||||
|
||||
var me = {
|
||||
elem: {
|
||||
$window: null,
|
||||
},
|
||||
|
||||
init: function () {
|
||||
me.elem.$window = $(window);
|
||||
me.attachEvents();
|
||||
},
|
||||
|
||||
/**
|
||||
* Registriert alle benötigten Events und Timer
|
||||
*/
|
||||
attachEvents: function () {
|
||||
|
||||
// Formular-Absenden abfangen
|
||||
$('img.reset').on('click', function (event) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'index.php?module=systemhealth&action=list&cmd=reset',
|
||||
data: {
|
||||
id: $(this).data('id'),
|
||||
},
|
||||
success: function (data) {
|
||||
if(data.status) {
|
||||
window.location = 'index.php?module=systemhealth&action=list';
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
$('span.systemhealthnotification').on('click', function(){
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'index.php?module=systemhealth&action=list&cmd=changenotification',
|
||||
data: {
|
||||
id: $(this).data('id'),
|
||||
value: $(this).hasClass('active')?0:1
|
||||
},
|
||||
success: function (data) {
|
||||
if(data.status) {
|
||||
if(data.value == 1) {
|
||||
$('span.systemhealthnotification[data-id='+data.id+']').toggleClass('active', true).toggleClass('inactive', false);
|
||||
}
|
||||
else{
|
||||
$('span.systemhealthnotification[data-id='+data.id+']').toggleClass('active', false).toggleClass('inactive', true);
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
},
|
||||
|
||||
};
|
||||
|
||||
return {
|
||||
init: me.init,
|
||||
};
|
||||
|
||||
}(jQuery);
|
||||
|
||||
$(document).on('ready',function(){
|
||||
SystemHealth.init();
|
||||
});
|
||||
Reference in New Issue
Block a user