web/views/calendar.py
changeset 8941 7b26fe71404f
parent 8307 8be58694f416
child 9256 697a8181ba30
equal deleted inserted replaced
8940:ae898a084da2 8941:7b26fe71404f
     1 # copyright 2003-2010 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
     1 # copyright 2003-2013 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
     2 # contact http://www.logilab.fr/ -- mailto:contact@logilab.fr
     2 # contact http://www.logilab.fr/ -- mailto:contact@logilab.fr
     3 #
     3 #
     4 # This file is part of CubicWeb.
     4 # This file is part of CubicWeb.
     5 #
     5 #
     6 # CubicWeb is free software: you can redistribute it and/or modify it under the
     6 # CubicWeb is free software: you can redistribute it and/or modify it under the
   186                    'right': 'month,agendaWeek,agendaDay',
   186                    'right': 'month,agendaWeek,agendaDay',
   187                    },
   187                    },
   188         }
   188         }
   189 
   189 
   190     def call(self):
   190     def call(self):
   191         self._cw.demote_to_html()
       
   192         self._cw.add_css(('fullcalendar.css', 'cubicweb.calendar.css'))
   191         self._cw.add_css(('fullcalendar.css', 'cubicweb.calendar.css'))
   193         self._cw.add_js(('jquery.ui.js', 'fullcalendar.min.js', 'jquery.qtip.min.js', 'fullcalendar.locale.js'))
   192         self._cw.add_js(('jquery.ui.js', 'fullcalendar.min.js', 'jquery.qtip.min.js', 'fullcalendar.locale.js'))
   194         self.calendar_id = 'cal' + make_uid('uid')
   193         self.calendar_id = 'cal' + make_uid('uid')
   195         self.add_onload()
   194         self.add_onload()
   196         # write calendar div to load jquery fullcalendar object
   195         # write calendar div to load jquery fullcalendar object