Skip to content

Commit

Permalink
Merge pull request midgetspy#546 from thezoggy/dev--editShow_fix
Browse files Browse the repository at this point in the history
editShow fix
  • Loading branch information
midgetspy committed Dec 8, 2012
2 parents 5663fee + f82f0ac commit defd900
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions data/interfaces/default/editShow.tmpl
Original file line number Diff line number Diff line change
@@ -1,35 +1,36 @@
#import sickbeard
#from sickbeard import common
#from sickbeard import exceptions
#set global $title="Edit "+$show.name
#set global $title="Edit " + $show.name
#set global $header=$show.name

#set global $sbPath=".."

#set global $topmenu="home"#
#set global $topmenu="home"
#import os.path
#include $os.path.join($sickbeard.PROG_DIR, "data/interfaces/default/inc_top.tmpl")

<script type="text/javascript" src="$sbRoot/js/qualityChooser.js?$sbPID"></script>
<script type="text/javascript" charset="utf-8">
<!--
\$(document).ready(function(){

\$.getJSON('$sbRoot/home/addShows/getTVDBLanguages', {}, function(data){
\$.getJSON('$sbRoot/home/addShows/getTVDBLanguages', {}, function(data) {
var resultStr = '';

if (data.results.length == 0) {
flag = ' class="flag" style="background-image:url($sbRoot/images/flags/${show.lang}.png)"';
resultStr = '<option value="$show.lang" selected="selected" + flag>$show.lang</option>';
} else {
var current_lang_added = false;
\$.each(data.results, function(index, obj){
\$.each(data.results, function(index, obj) {

if (obj == "$show.lang") {
selected = ' selected="selected"';
current_lang_added = true;
selected = ' selected="selected"';
current_lang_added = true;
}
else {
selected = '';
selected = '';
}

flag = ' class="flag" style="background-image:url($sbRoot/images/flags/' + obj + '.png);"';
Expand All @@ -41,7 +42,6 @@
}
\$('#tvdbLangSelect').html(resultStr)

\$('#tvdbLangSelect').change(function() { searchTvdb() });
});

});
Expand Down

0 comments on commit defd900

Please sign in to comment.