Fixed webpack issues adding indexers/download clients/notifications

pull/6/head
Mark McDowall 10 years ago
parent e6566b26d8
commit ed4bf349db

@ -224,7 +224,7 @@ define(
SeriesCollection.add(self.model); SeriesCollection.add(self.model);
self.close(); self.close();
Messenger.show({ Messenger.show({
message: 'Added: ' + self.model.get('title'), message: 'Added: ' + self.model.get('title'),
actions : { actions : {

@ -1,16 +1,12 @@
var _ = require('underscore'); var vent = require('../../../vent');
var vent = require('../../../vent');
var AppLayout = require('../../../AppLayout');
var Marionette = require('marionette'); var Marionette = require('marionette');
var DeleteView = require('../Delete/DownloadClientDeleteView'); var DeleteView = require('../Delete/DownloadClientDeleteView');
var CommandController = require('../../../Commands/CommandController');
var AsModelBoundView = require('../../../Mixins/AsModelBoundView'); var AsModelBoundView = require('../../../Mixins/AsModelBoundView');
var AsValidatedView = require('../../../Mixins/AsValidatedView'); var AsValidatedView = require('../../../Mixins/AsValidatedView');
var AsEditModalView = require('../../../Mixins/AsEditModalView'); var AsEditModalView = require('../../../Mixins/AsEditModalView');
require('../../../Form/FormBuilder'); require('../../../Form/FormBuilder');
require('../../../Mixins/FileBrowser'); require('../../../Mixins/FileBrowser');
require('bootstrap'); require('bootstrap');
require('../Add/DownloadClientSchemaModal');
module.exports = (function(){ module.exports = (function(){
var view = Marionette.ItemView.extend({ var view = Marionette.ItemView.extend({
@ -19,7 +15,9 @@ module.exports = (function(){
path : '.x-path', path : '.x-path',
modalBody : '.modal-body' modalBody : '.modal-body'
}, },
events : {"click .x-back" : '_back'}, events : {
'click .x-back' : '_back'
},
_deleteView : DeleteView, _deleteView : DeleteView,
initialize : function(options){ initialize : function(options){
this.targetCollection = options.targetCollection; this.targetCollection = options.targetCollection;

@ -1,4 +1,4 @@
var _ = require('underscore'); var _ = require('underscore');
var $ = require('jquery'); var $ = require('jquery');
var AppLayout = require('../../../AppLayout'); var AppLayout = require('../../../AppLayout');
var Marionette = require('marionette'); var Marionette = require('marionette');
@ -8,9 +8,10 @@ module.exports = Marionette.ItemView.extend({
template : 'Settings/Indexers/Add/IndexerAddItemViewTemplate', template : 'Settings/Indexers/Add/IndexerAddItemViewTemplate',
tagName : 'li', tagName : 'li',
className : 'add-thingy-item', className : 'add-thingy-item',
events : { events : {
"click .x-preset" : '_addPreset', 'click .x-preset' : '_addPreset',
"click" : '_add' 'click' : '_add'
}, },
initialize : function(options){ initialize : function(options){
this.targetCollection = options.targetCollection; this.targetCollection = options.targetCollection;
@ -33,6 +34,7 @@ module.exports = Marionette.ItemView.extend({
enableRss : this.model.get('supportsRss'), enableRss : this.model.get('supportsRss'),
enableSearch : this.model.get('supportsSearch') enableSearch : this.model.get('supportsSearch')
}); });
var editView = new EditView({ var editView = new EditView({
model : this.model, model : this.model,
targetCollection : this.targetCollection targetCollection : this.targetCollection

@ -1,20 +1,19 @@
var vent = require('../../../vent'); var vent = require('../../../vent');
var AppLayout = require('../../../AppLayout');
var Marionette = require('marionette'); var Marionette = require('marionette');
var DeleteView = require('../Delete/IndexerDeleteView'); var DeleteView = require('../Delete/IndexerDeleteView');
var CommandController = require('../../../Commands/CommandController');
var AsModelBoundView = require('../../../Mixins/AsModelBoundView'); var AsModelBoundView = require('../../../Mixins/AsModelBoundView');
var AsValidatedView = require('../../../Mixins/AsValidatedView'); var AsValidatedView = require('../../../Mixins/AsValidatedView');
var AsEditModalView = require('../../../Mixins/AsEditModalView'); var AsEditModalView = require('../../../Mixins/AsEditModalView');
require('../../../Form/FormBuilder'); require('../../../Form/FormBuilder');
require('../../../Mixins/AutoComplete'); require('../../../Mixins/AutoComplete');
require('bootstrap'); require('bootstrap');
require('../Add/IndexerSchemaModal');
module.exports = (function(){ module.exports = (function(){
var view = Marionette.ItemView.extend({ var view = Marionette.ItemView.extend({
template : 'Settings/Indexers/Edit/IndexerEditViewTemplate', template : 'Settings/Indexers/Edit/IndexerEditViewTemplate',
events : {"click .x-back" : '_back'}, events : {
'click .x-back' : '_back'
},
_deleteView : DeleteView, _deleteView : DeleteView,
initialize : function(options){ initialize : function(options){
this.targetCollection = options.targetCollection; this.targetCollection = options.targetCollection;

@ -1,15 +1,11 @@
var _ = require('underscore'); var vent = require('../../../vent');
var vent = require('../../../vent');
var AppLayout = require('../../../AppLayout');
var Marionette = require('marionette'); var Marionette = require('marionette');
var DeleteView = require('../Delete/NotificationDeleteView'); var DeleteView = require('../Delete/NotificationDeleteView');
var CommandController = require('../../../Commands/CommandController');
var AsModelBoundView = require('../../../Mixins/AsModelBoundView'); var AsModelBoundView = require('../../../Mixins/AsModelBoundView');
var AsValidatedView = require('../../../Mixins/AsValidatedView'); var AsValidatedView = require('../../../Mixins/AsValidatedView');
var AsEditModalView = require('../../../Mixins/AsEditModalView'); var AsEditModalView = require('../../../Mixins/AsEditModalView');
require('../../../Form/FormBuilder'); require('../../../Form/FormBuilder');
require('../../../Mixins/TagInput'); require('../../../Mixins/TagInput');
require('../Add/NotificationSchemaModal');
module.exports = (function(){ module.exports = (function(){
var view = Marionette.ItemView.extend({ var view = Marionette.ItemView.extend({
@ -20,8 +16,8 @@ module.exports = (function(){
tags : '.x-tags' tags : '.x-tags'
}, },
events : { events : {
"click .x-back" : '_back', 'click .x-back' : '_back',
"change .x-on-download" : '_onDownloadChanged' 'change .x-on-download' : '_onDownloadChanged'
}, },
_deleteView : DeleteView, _deleteView : DeleteView,
initialize : function(options){ initialize : function(options){

Loading…
Cancel
Save