mirror of
https://github.com/unraid/webgui.git
synced 2026-05-03 08:19:27 -05:00
20 lines
664 B
Plaintext
20 lines
664 B
Plaintext
Menu="Tasks:2"
|
|
Type="xmenu"
|
|
Code="e970"
|
|
---
|
|
<script>
|
|
function delPage(page) {
|
|
$.post('/webGui/include/MyFavorites.php',{action:'del',page:page},function(){refresh();});
|
|
}
|
|
|
|
$(function(){
|
|
$('i.PanelIcon').each(function(){
|
|
var icon = $(this);
|
|
var page = icon.closest('a').prop('href').split('/').pop();
|
|
icon.after('<i class="fa fa-minus-square-o favo" style="display:none" title="_(Remove from favorites)_" onclick="delPage("'+page+'");return false"></i>');
|
|
icon.parent().parent().parent().hover(function(){icon.next().show();},function(){icon.next().hide();});
|
|
});
|
|
if ($('i.PanelIcon').length==0) $('#nofavs').show();
|
|
});
|
|
</script>
|