From bd763f0fa8c47107c9e90b09b909de850b58067c Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Sun, 15 Jun 2014 19:47:11 +0200 Subject: [PATCH] fix mediaView for no longer available files --- static/js/mediaView.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/static/js/mediaView.js b/static/js/mediaView.js index 538c7cdf..75a417f7 100644 --- a/static/js/mediaView.js +++ b/static/js/mediaView.js @@ -85,14 +85,14 @@ pandora.ui.mediaView = function(options) { ? 1 : 0; return $('') .attr({ - src: Ox.UI.getImageURL('symbol' + { + src: Ox.UI.getImageURL('symbol' + ({ 'available': 'Check', 'encoding': 'Sync', 'failed': 'Warning', 'queued': 'Data', 'uploading': 'Upload', 'wanted': 'Up', - }[data.state]) + }[data.state] || 'Check')) }) .css({ width: '10px',