mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
gui: fix imdbid button on dashboard search result rows
3rd time's the charm.
This commit is contained in:
@@ -970,8 +970,8 @@ function updateReleasesRow(row) {
|
||||
|
||||
labels.empty();
|
||||
|
||||
if (IMDBId) {
|
||||
var imdbLen = (IMDBId.length > 7) ? 8 : 7
|
||||
if (IMDBId) {
|
||||
var imdbLen = (IMDBId.toString().length > 7) ? 8 : 7;
|
||||
labels.append('\n<a href="https://www.imdb.com/title/tt' + ("00000000" + IMDBId).slice(-imdbLen) + '/" class="label label-imdb" alt="IMDB" title="IMDB">IMDB</a>');
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user