mirror of
https://github.com/unraid/webgui.git
synced 2026-05-03 00:09:27 -05:00
Favorites: change icon to "heart"
This commit is contained in:
@@ -11,7 +11,7 @@ $(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.after('<i class="fa fa-heartbeat 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();
|
||||
|
||||
@@ -14,7 +14,7 @@ $(function(){
|
||||
$('i.PanelIcon').each(function(){
|
||||
var icon = $(this);
|
||||
var page = icon.closest('a').prop('href').split('/').pop();
|
||||
icon.after('<i class="fa fa-plus-square-o favo" style="display:none" title="_(Add to favorites)_" onclick="addPage("'+page+'");return false"></i>');
|
||||
icon.after('<i class="fa fa-heart favo" style="display:none" title="_(Add to favorites)_" onclick="addPage("'+page+'");return false"></i>');
|
||||
icon.parent().parent().parent().hover(function(){icon.next().show();},function(){icon.next().hide();});
|
||||
});
|
||||
});
|
||||
|
||||
@@ -14,7 +14,7 @@ $(function(){
|
||||
$('i.PanelIcon').each(function(){
|
||||
var icon = $(this);
|
||||
var page = icon.closest('a').prop('href').split('/').pop();
|
||||
icon.after('<i class="fa fa-plus-square-o favo" style="display:none" title="_(Add to favorites)_" onclick="addPage("'+page+'");return false"></i>');
|
||||
icon.after('<i class="fa fa-heart favo" style="display:none" title="_(Add to favorites)_" onclick="addPage("'+page+'");return false"></i>');
|
||||
icon.parent().parent().parent().hover(function(){icon.next().show();},function(){icon.next().hide();});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user