Private GIT

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

Automatically select the first show option when adding shows

parent 82d3492a
Branches
Tags
No related merge requests found
......@@ -23,7 +23,11 @@
} else {
\$.each(data.results, function(index, obj){
resultStr += '<input type="radio" name="whichSeries" value="' + obj[0] + '"> '
if (resultStr == '')
checked = ' checked';
else
checked = '';
resultStr += '<input type="radio" name="whichSeries" value="' + obj[0] + '"' + checked + ' /> '
resultStr += '<a href="http://thetvdb.com/?tab=series&id=' + obj[0] + '" target="_new"><b>' + obj[1] + '</b></a>'
if (obj[2] != null)
resultStr += ' (started on ' + obj[2] + ')'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment