mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-08-04 06:32:18 +00:00
Initial drag'n'drop support in Calendar module
TODO: - drag'n'drop in month's view; - drag to create an all-day event; - drag'n'drop to a calendar in the sidenav; - touchscreen gestures support.
This commit is contained in:
@@ -29,8 +29,8 @@
|
||||
})
|
||||
.state('calendars.view', {
|
||||
url: '/{view:(?:day|week|month|multicolumnday)}/:day',
|
||||
sticky: true,
|
||||
deepStateRedirect: true,
|
||||
//sticky: true,
|
||||
//deepStateRedirect: true,
|
||||
views: {
|
||||
calendarView: {
|
||||
templateUrl: function($stateParams) {
|
||||
@@ -93,6 +93,8 @@
|
||||
.then(function(views) {
|
||||
_.forEach(views, function(view) {
|
||||
if (view.id) {
|
||||
// Note: this can't be done in Component service since it would make Component dependent on
|
||||
// the Calendar service and create a circular dependency
|
||||
view.calendar = new Calendar({ id: view.id, name: view.calendarName });
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user