mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-29 21:39:34 +02:00
Added HDBits Category, Codec, and Medium Filtering Capability (#1458)
* Added advanced configuration options to support filtering Categories, Codecs, and Medium to the HDBits indexer. * Changes to use the existing tags with a controlled vocabulary. * 1) Sorting select options by name 2) Moved the autocomplete tag code into taginput as requested * removed commented out line * require cleanups
This commit is contained in:

committed by
Leonardo Galli

parent
86634006e5
commit
3d48da2111
@@ -1,4 +1,4 @@
|
||||
var _ = require('underscore');
|
||||
var _ = require('underscore');
|
||||
var $ = require('jquery');
|
||||
var vent = require('vent');
|
||||
var Marionette = require('marionette');
|
||||
@@ -8,11 +8,16 @@ var AsValidatedView = require('../../../Mixins/AsValidatedView');
|
||||
var AsEditModalView = require('../../../Mixins/AsEditModalView');
|
||||
require('../../../Form/FormBuilder');
|
||||
require('../../../Mixins/AutoComplete');
|
||||
require('../../../Mixins/TagInput');
|
||||
require('bootstrap');
|
||||
|
||||
var view = Marionette.ItemView.extend({
|
||||
template : 'Settings/Indexers/Edit/IndexerEditViewTemplate',
|
||||
|
||||
ui: {
|
||||
tags : '.x-form-tag'
|
||||
},
|
||||
|
||||
events : {
|
||||
'click .x-back' : '_back',
|
||||
'click .x-captcha-refresh' : '_onRefreshCaptcha'
|
||||
@@ -24,6 +29,10 @@ var view = Marionette.ItemView.extend({
|
||||
this.targetCollection = options.targetCollection;
|
||||
},
|
||||
|
||||
onRender: function () {
|
||||
this.ui.tags.tagInput({});
|
||||
},
|
||||
|
||||
_onAfterSave : function() {
|
||||
this.targetCollection.add(this.model, { merge : true });
|
||||
vent.trigger(vent.Commands.CloseModalCommand);
|
||||
|
Reference in New Issue
Block a user