@ -39,7 +39,7 @@ module.exports = Marionette.ItemView.extend({
},
_add : function(e) {
if ($(e.target).closest('.btn,.btn-group').length !== 0) {
if ($(e.target).closest('.btn,.btn-group').length !== 0 && $(e.target).closest('.x-custom').length === 0) {
return;
}
@ -4,6 +4,9 @@
</div>
<div class="pull-right">
{{#if_gt presets.length compare=0}}
<button class="btn btn-xs btn-default x-custom">
Custom
</button>
<div class="btn-group">
<button class="btn btn-xs btn-default dropdown-toggle" data-toggle="dropdown">
Presets
@ -4,6 +4,10 @@
<h3>Add Indexer</h3>
<div class="modal-body">
<div class="alert alert-info">
Sonarr supports any indexer that uses the Newznab standard, as well as other indexers listed below.<br/>
For more information on the individual indexers, clink on the info buttons.
<div class="add-indexer add-thingies">
<ul class="items"></ul>
@ -28,7 +28,7 @@ module.exports = Marionette.ItemView.extend({
@ -41,7 +41,7 @@ module.exports = Marionette.ItemView.extend({