diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2013-07-17 15:21:25 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2013-07-17 15:21:41 +0200 |
commit | cb1310e973cd806cc414b7a7fcf677829fbbc82e (patch) | |
tree | 2ab6550e99bcd049c50716abf16de3775091c52b | |
parent | Fixed source strings (diff) | |
download | pyload-cb1310e973cd806cc414b7a7fcf677829fbbc82e.tar.xz |
little fix for plugin chooser
-rw-r--r-- | pyload/web/app/scripts/views/settings/pluginChooserModal.js | 5 |
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; }, |