mirror of
https://github.com/Sonarr/Sonarr.git
synced 2024-12-14 11:23:42 +02:00
c32346e6ea
Styling works, backend saving not yet implemented.
21 lines
562 B
Plaintext
21 lines
562 B
Plaintext
<div id="image" value="5">
|
|
<img src='../../Content/Images/watched.png' class='ignoreEpisode watched' value='5' />
|
|
</div>
|
|
|
|
<script type="text/javascript">
|
|
$(".ignoreEpisode").live("click", function () {
|
|
var toggle = $(this);
|
|
|
|
if (toggle.hasClass('watched')) {
|
|
toggle.removeClass('watched');
|
|
toggle.attr('src', '../../Content/Images/unwatched.png');
|
|
}
|
|
|
|
else {
|
|
toggle.addClass('watched');
|
|
toggle.attr('src', '../../Content/Images/watched.png');
|
|
}
|
|
});
|
|
</script>
|
|
|