summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-07-17 15:21:25 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-07-17 15:21:41 +0200
commitcb1310e973cd806cc414b7a7fcf677829fbbc82e (patch)
tree2ab6550e99bcd049c50716abf16de3775091c52b
parentFixed source strings (diff)
downloadpyload-cb1310e973cd806cc414b7a7fcf677829fbbc82e.tar.xz
little fix for plugin chooser
-rw-r--r--pyload/web/app/scripts/views/settings/pluginChooserModal.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/pyload/web/app/scripts/views/settings/pluginChooserModal.js b/pyload/web/app/scripts/views/settings/pluginChooserModal.js
index 91e9f11b3..242d11a5a 100644
--- a/pyload/web/app/scripts/views/settings/pluginChooserModal.js
+++ b/pyload/web/app/scripts/views/settings/pluginChooserModal.js
@@ -48,12 +48,15 @@ define(['jquery', 'underscore', 'app', 'views/abstract/modalView', 'hbs!tpl/dial
},
format: function(data) {
- var s = '<div class="plugin-select" style="background-image: url(' + pluginIcon(data.name) +')">' + data.label;
+ var s = '<div class="plugin-select" style="background-image: url(' + pluginIcon(data.name) + ')">' + data.label;
s += '<br><span>' + data.description + '<span></div>';
return s;
},
formatSelection: function(data) {
+ if (!data || _.isEmpty(data))
+ return '';
+
return '<img class="logo-select" src="' + pluginIcon(data.name) + '"> ' + data.label;
},