Fix indicator position in context menu

This commit is contained in:
bergware
2023-02-28 16:20:18 +01:00
parent 9c3a68c5f9
commit 0595daf803
3 changed files with 4 additions and 4 deletions

View File

@@ -104,7 +104,7 @@ String.prototype.actionName = function(){return this.split(/[\\/]/g).pop();}
String.prototype.channel = function(){return this.split(':')[1].split(',').findIndex((e)=>/\[\d\]/.test(e));}
Shadowbox.init({skipSetup:true});
context.init({above:false});
context.init();
// server uptime
var uptime = <?=strtok(exec("cat /proc/uptime"),' ')?>;
@@ -989,7 +989,7 @@ $(function() {
<?endif;?>
<?endif;?>
var opts = [];
context.settings({right:true});
context.settings({right:true,above:false});
opts.push({header:"<?=_('Notifications')?>"});
opts.push({text:"<?=_('Alerts')?>",icon:'fa-bell-o',subMenu:[{text:"<?=_('View')?>",icon:'fa-folder-open-o',action:function(e){e.preventDefault();openNotifier('alert');}},{text:"<?=_('History')?>",icon:'fa-file-text-o',action:function(e){e.preventDefault();viewHistory('alert');}},{text:"<?=_('Acknowledge')?>",icon:'fa-check-square-o',action:function(e){e.preventDefault();closeNotifier('alert');}}]});
opts.push({text:"<?=_('Warnings')?>",icon:'fa-star-o',subMenu:[{text:"<?=_('View')?>",icon:'fa-folder-open-o',action:function(e){e.preventDefault();openNotifier('warning');}},{text:"<?=_('History')?>",icon:'fa-file-text-o',action:function(e){e.preventDefault();viewHistory('warning');}},{text:"<?=_('Acknowledge')?>",icon:'fa-check-square-o',action:function(e){e.preventDefault();closeNotifier('warning');}}]});