mirror of
https://github.com/unraid/webgui.git
synced 2026-04-22 18:19:14 -05:00
Merge remote-tracking branch 'upstream/master'
This commit is contained in:
@@ -299,8 +299,7 @@ function notifier() {
|
||||
var tub1 = 0, tub2 = 0, tub3 = 0;
|
||||
$.post('/webGui/include/Notify.php',{cmd:'get'},function(json) {
|
||||
var data = $.parseJSON(json);
|
||||
$.each(data, function(i, object) {
|
||||
var notify = $.parseJSON(object);
|
||||
$.each(data, function(i, notify) {
|
||||
<?if ($notify['display']):?>
|
||||
switch (notify.importance) {
|
||||
case 'alert' : tub1++; break;
|
||||
@@ -336,8 +335,7 @@ function digits(number) {
|
||||
function openNotifier(filter) {
|
||||
$.post('/webGui/include/Notify.php',{cmd:'get'},function(json) {
|
||||
var data = $.parseJSON(json);
|
||||
$.each(data, function(i, object) {
|
||||
var notify = $.parseJSON(object);
|
||||
$.each(data, function(i, notify) {
|
||||
if (notify.importance == filter) {
|
||||
$.jGrowl(notify.subject+'<br>'+notify.description, {
|
||||
group: notify.importance,
|
||||
@@ -354,8 +352,7 @@ function closeNotifier(filter) {
|
||||
clearTimeout(timers.notifier);
|
||||
$.post('/webGui/include/Notify.php',{cmd:'get'},function(json) {
|
||||
var data = $.parseJSON(json);
|
||||
$.each(data, function(i, object) {
|
||||
var notify = $.parseJSON(object);
|
||||
$.each(data, function(i, notify) {
|
||||
if (notify.importance == filter) $.post('/webGui/include/Notify.php',{cmd:'archive',file:notify.file});
|
||||
});
|
||||
$('div.jGrowl').find('.'+filter).find('div.jGrowl-close').trigger('click');
|
||||
|
||||
Reference in New Issue
Block a user