From 5c5b54c518e6d3e2f7e8bd001bf61433435a0ef4 Mon Sep 17 00:00:00 2001 From: rolux Date: Wed, 30 Jan 2013 11:46:44 +0530 Subject: [PATCH] remove some logging; fix 'NaN' as Cuts per Minute / Words per Minute (fixes #1196) --- static/js/pandora/infoView.0xdb.js | 2 +- static/js/pandora/itemClips.js | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/static/js/pandora/infoView.0xdb.js b/static/js/pandora/infoView.0xdb.js index 42ae32eb9..39e5a3045 100644 --- a/static/js/pandora/infoView.0xdb.js +++ b/static/js/pandora/infoView.0xdb.js @@ -525,7 +525,7 @@ pandora.ui.infoView = function(data) { .append( Ox.Theme.formatColor(null, 'gradient') .css({textAlign: 'right'}) - .html(Ox.formatNumber(data[key], 3)) + .html(Ox.formatNumber(value, 3)) ) .appendTo($statistics); }); diff --git a/static/js/pandora/itemClips.js b/static/js/pandora/itemClips.js index 16d110a1d..43e41f049 100644 --- a/static/js/pandora/itemClips.js +++ b/static/js/pandora/itemClips.js @@ -25,7 +25,6 @@ pandora.ui.itemClips = function(options) { self.height = self.options.ratio > 1 ? Math.round(self.size / self.options.ratio) : self.size; self.options.clips.forEach(function(clip, i) { - Ox.Log('', 'CLIP', clip) var annotations = clip.annotations.sort(function(a, b) { var layerA = pandora.site.clipLayers.indexOf(a.layer), layerB = pandora.site.clipLayers.indexOf(b.layer);