New: Mass series editor

This commit is contained in:
Mark McDowall
2013-12-08 21:25:27 -08:00
parent f76c4700a6
commit a9ece10144
26 changed files with 606 additions and 34 deletions
+5 -5
View File
@@ -15,8 +15,8 @@ define(
return Marionette.AppRouter.extend({
initialize: function () {
vent.on(vent.Commands.OpenModalCommand, this._openModal, this);
vent.on(vent.Commands.CloseModalCommand, this._closeModal, this);
vent.on(vent.Commands.OpenModalCommand, this._openControlPanel, this);
vent.on(vent.Commands.CloseModalCommand, this._closeControlPanel, this);
vent.on(vent.Commands.EditSeriesCommand, this._editSeries, this);
vent.on(vent.Commands.DeleteSeriesCommand, this._deleteSeries, this);
vent.on(vent.Commands.ShowEpisodeDetails, this._showEpisode, this);
@@ -25,12 +25,12 @@ define(
vent.on(vent.Commands.ShowRenamePreview, this._showRenamePreview, this);
},
_openModal: function (view) {
_openControlPanel: function (view) {
AppLayout.modalRegion.show(view);
},
_closeModal: function () {
AppLayout.modalRegion.closeModal();
_closeControlPanel: function () {
AppLayout.modalRegion.closePanel();
},
_editSeries: function (options) {
+3 -3
View File
@@ -11,7 +11,7 @@ define(
constructor: function () {
Backbone.Marionette.Region.prototype.constructor.apply(this, arguments);
this.on('show', this.showModal, this);
this.on('show', this.showPanel, this);
},
getEl: function (selector) {
@@ -20,7 +20,7 @@ define(
return $el;
},
showModal: function () {
showPanel: function () {
this.$el.addClass('modal hide fade');
//need tab index so close on escape works
@@ -32,7 +32,7 @@ define(
'backdrop': 'static'});
},
closeModal: function () {
closePanel: function () {
$(this.el).modal('hide');
this.reset();
}