equal
deleted
inserted
replaced
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 |