summaryrefslogtreecommitdiff
path: root/www/js/shows.js
diff options
context:
space:
mode:
authorPeter Grassberger <petertheone@gmail.com>2016-07-15 15:20:09 (GMT)
committerPeter Grassberger <petertheone@gmail.com>2016-07-15 15:20:09 (GMT)
commita3d0413c9c77e24254a3280dce17c6672a2b8cc3 (patch)
tree30337b41dbd40bf447a5e95cd37c5d7ad30a957f /www/js/shows.js
parent355b9109410ddbb2a471d88b0eadcdc895032aac (diff)
fix useMetadata, set SHOW_ID
Diffstat (limited to 'www/js/shows.js')
-rw-r--r--www/js/shows.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/www/js/shows.js b/www/js/shows.js
index 30dbd8e..82e38b5 100644
--- a/www/js/shows.js
+++ b/www/js/shows.js
@@ -83,7 +83,7 @@ Rdxport.ShowListView.prototype.getCurrentShowView = function() {
var self = this;
var showViewFound = null;
$(this.showViews).each(function(index, showView) {
- if (showView.model.id === self.currentShowId) {
+ if (showView.model.id === parseInt(self.currentShowId)) {
showViewFound = showView;
return true;
}
@@ -147,7 +147,7 @@ Rdxport.Show = function(groupName, description, lowcart, highcart, normlevel, tr
id, title, log, rhythm, dayofweek, starttime, length) {
if (arguments.length = 1) {
Rdxport.Group.call(this, groupName);
- this.id = $('show-id', this.xml).text();
+ this.id = parseInt($('show-id', this.xml).text());
this.title = $('show-title', this.xml).text();
this.log = $('show-log', this.xml).text();
this.rhythm = $('show-rhythm', this.xml).text();