mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-15 01:23:53 -07:00
making modals event driven,
This commit is contained in:
parent
2083a86c2a
commit
00dcce469d
18 changed files with 100 additions and 53 deletions
|
@ -1,4 +1,4 @@
|
|||
'use strict';
|
||||
'use strict';
|
||||
|
||||
define(
|
||||
[
|
||||
|
@ -6,7 +6,6 @@ define(
|
|||
'marionette',
|
||||
'moment',
|
||||
'Calendar/Collection',
|
||||
'Episode/Layout',
|
||||
'fullcalendar'
|
||||
], function (App, Marionette, Moment, CalendarCollection, EpisodeLayout) {
|
||||
|
||||
|
@ -37,7 +36,7 @@ define(
|
|||
$(element).addClass(event.statusLevel);
|
||||
$(element).children('.fc-event-inner').addClass(event.statusLevel);
|
||||
},
|
||||
eventClick : function (event) {
|
||||
eventClick : function (event) {
|
||||
var view = new EpisodeLayout({ model: event.model });
|
||||
App.modalRegion.show(view);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue