Skip to content

Commit

Permalink
Access favorite name by hash key, not its value index.
Browse files Browse the repository at this point in the history
  • Loading branch information
mherger committed Apr 26, 2022
1 parent c1321f2 commit 461f54b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions HTML/Default/xmlbrowser.html
Original file line number Diff line number Diff line change
Expand Up @@ -203,11 +203,11 @@
[%- BLOCK allcontrol -%]
[% IF songinfo.favorites == 1 %]
[% WRAPPER favaddlink noTarget=1 %]
onclick="SqueezeJS.Utils.toggleFavorite(this, '[% songinfo.favorites_url | uri | replace("'", "%27") %]', '[% crumb.values.-1 | html %]');"
onclick="SqueezeJS.Utils.toggleFavorite(this, '[% songinfo.favorites_url | uri | replace("'", "%27") %]', '[% crumb.name | html %]');"
[% END %]
[% ELSIF songinfo.favorites == 2 %]
[% WRAPPER favdellink noTarget=1 %]
onclick="SqueezeJS.Utils.toggleFavorite(this, '[% songinfo.favorites_url | uri | replace("'", "%27") %]', '[% crumb.values.-1 | html %]');"
onclick="SqueezeJS.Utils.toggleFavorite(this, '[% songinfo.favorites_url | uri | replace("'", "%27") %]', '[% crumb.name | html %]');"
[% END %]
[% END %]

Expand Down

0 comments on commit 461f54b

Please sign in to comment.