summaryrefslogtreecommitdiff
path: root/www/js
diff options
context:
space:
mode:
authorPeter Grassberger <petertheone@gmail.com>2015-12-27 23:05:12 (GMT)
committerPeter Grassberger <petertheone@gmail.com>2015-12-27 23:05:12 (GMT)
commita60b7236d63882b73a02c26c6688e380810802cb (patch)
tree0237dd238091bed22e08bb685c214a803b673f8b /www/js
parentbbf260973e8bddf4d912eada3e6efb035c268d26 (diff)
shows: fix code style
Diffstat (limited to 'www/js')
-rw-r--r--www/js/shows.js49
1 files changed, 24 insertions, 25 deletions
diff --git a/www/js/shows.js b/www/js/shows.js
index 4dcb050..b050c25 100644
--- a/www/js/shows.js
+++ b/www/js/shows.js
@@ -297,32 +297,31 @@ function shows_updateList(data, status, req) {
var dblist = $(data).find("dropboxList");
var dbs = dblist.children();
dbs.each(function() {
- type = $(this).find('type').text();
- if(type == 'show') {
- var show = {
- id: $(this).find('show-id').text(),
- title: $(this).find('show-title').text(),
- dow: $(this).find('show-dayofweek').text(),
- rhythm: $(this).find('show-rhythm').text(),
- starttime: $(this).find('show-starttime').text(),
- length: $(this).find('show-length').text(),
- log: $(this).find('show-log').text(),
- group: {
- name: $(this).find('group').text(),
- lowcart: $(this).find('group-low-cart').text(),
- highcart: $(this).find('group-high-cart').text()
- },
- normlevel: $(this).find('normalization-level').text(),
- trimlevel: $(this).find('autotrim-level').text()
- };
-
- var name = show.title + ' (' + show.rhythm + ', ' + weekday[show.dow] + ', ' + show.starttime + ', ' + show.length + ' Min.)';
- $('#show-selector').append($('<option>').attr('value',show.id).text(name));
-
- shows_list.push(show);
- }
+ var type = $(this).find('type').text();
+ if(type == 'show') {
+ var show = {
+ id: $(this).find('show-id').text(),
+ title: $(this).find('show-title').text(),
+ dow: $(this).find('show-dayofweek').text(),
+ rhythm: $(this).find('show-rhythm').text(),
+ starttime: $(this).find('show-starttime').text(),
+ length: $(this).find('show-length').text(),
+ log: $(this).find('show-log').text(),
+ group: {
+ name: $(this).find('group').text(),
+ lowcart: $(this).find('group-low-cart').text(),
+ highcart: $(this).find('group-high-cart').text()
+ },
+ normlevel: $(this).find('normalization-level').text(),
+ trimlevel: $(this).find('autotrim-level').text()
+ };
+
+ var name = show.title + ' (' + show.rhythm + ', ' + weekday[show.dow] + ', ' + show.starttime + ', ' + show.length + ' Min.)';
+ $('#show-selector').append($('<option>').attr('value',show.id).text(name));
+
+ shows_list.push(show);
}
- );
+ });
$('#show-selector').val(shows_currentid);
shows_showSelected();
}