Cleaned up modals in the UI.

added empty modal for episode info
This commit is contained in:
Keivan Beigi 2013-05-14 18:17:24 -07:00
commit 27fc51da48
16 changed files with 118 additions and 67 deletions

View file

@ -26,7 +26,7 @@ require.config({
}
});
define('app', function () {
define('app', ['shared/modal/region'], function (ModalRegion) {
window.NzbDrone = new Backbone.Marionette.Application();
window.NzbDrone.Config = {};
@ -49,6 +49,10 @@ define('app', function () {
RootFolders: {}
};
window.NzbDrone.Episode = {
Search: {}
};
window.NzbDrone.Quality = {};
@ -77,9 +81,6 @@ define('app', function () {
window.NzbDrone.History = {};
window.NzbDrone.Events = {
//TODO: Move to commands
OpenModalDialog : 'openModal',
CloseModalDialog: 'closeModal',
SeriesAdded : 'seriesAdded'
};
@ -99,7 +100,8 @@ define('app', function () {
NzbDrone.addRegions({
mainRegion : '#main-region',
notificationRegion: '#notification-region'
notificationRegion: '#notification-region',
modalRegion : ModalRegion
});
window.NzbDrone.start();