Private GIT

Skip to content
Snippets Groups Projects
Commit 3f5496bb authored by Nic Wolfe's avatar Nic Wolfe
Browse files

Merge pull request #344 from yoavf/master

When searching for new series, properly describe a show that starts in the future
parents 4f82d1cc 1ea029c7
Branches
Tags
No related merge requests found
...@@ -54,8 +54,15 @@ $(document).ready(function(){ ...@@ -54,8 +54,15 @@ $(document).ready(function(){
else else
resultStr += '<a href="http://thetvdb.com/?tab=series&id=' + obj[0] + '" onclick=\"window.open(this.href, \'_blank\'); return false;\" ><b>' + obj[1] + '</b></a>'; resultStr += '<a href="http://thetvdb.com/?tab=series&id=' + obj[0] + '" onclick=\"window.open(this.href, \'_blank\'); return false;\" ><b>' + obj[1] + '</b></a>';
if (obj[2] != null) if (obj[2] != null) {
var startDate = new Date(obj[2]);
var today = new Date();
if (startDate>today)
resultStr += ' (will debut on ' + obj[2] + ')';
else
resultStr += ' (started on ' + obj[2] + ')'; resultStr += ' (started on ' + obj[2] + ')';
}
resultStr += '<br />'; resultStr += '<br />';
}); });
resultStr += '</ul>'; resultStr += '</ul>';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment