diff options
author | redmatrix <git@macgirvin.com> | 2016-07-01 20:48:49 -0700 |
---|---|---|
committer | redmatrix <git@macgirvin.com> | 2016-07-01 20:48:49 -0700 |
commit | 523e7b5084b1ae62e151d1183f5150ffd9d9e60c (patch) | |
tree | 59ebb1acbd8d546a38bf9f099c13c2c914450df3 /view/tpl/event_head.tpl | |
parent | 41fa2d6c697bc4f7483e6c934b24c11fae368390 (diff) | |
parent | 0a119913406db6604ab6d44b53fdb1f07313db84 (diff) | |
download | volse-hubzilla-523e7b5084b1ae62e151d1183f5150ffd9d9e60c.tar.gz volse-hubzilla-523e7b5084b1ae62e151d1183f5150ffd9d9e60c.tar.bz2 volse-hubzilla-523e7b5084b1ae62e151d1183f5150ffd9d9e60c.zip |
Merge branch 'dev' of https://github.com/redmatrix/hubzilla into dev_merge
Diffstat (limited to 'view/tpl/event_head.tpl')
-rwxr-xr-x | view/tpl/event_head.tpl | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/view/tpl/event_head.tpl b/view/tpl/event_head.tpl index 4397c5c9d..fee4f17a3 100755 --- a/view/tpl/event_head.tpl +++ b/view/tpl/event_head.tpl @@ -30,18 +30,18 @@ function changeView(action, viewName) { $('#events-calendar').fullCalendar(action, viewName); var view = $('#events-calendar').fullCalendar('getView'); - if(view.type === 'agendaDay' || view.type === 'agendaWeek') { + + if(view.type !== 'month' && !$('main').hasClass('fullscreen')) { $('#events-calendar').fullCalendar('option', 'height', 'auto'); } else { - if($('main').hasClass('fullscreen')) { - $('#calendar').fullCalendar('option', 'height', $(window).height() - $('.section-title-wrapper').outerHeight(true) - 2); // -2 is for border width (.generic-content-wrapper top and bottom) of .generic-content-wrapper + $('#events-calendar').fullCalendar('option', 'height', ''); + } - } - else { - $('#calendar').fullCalendar('option', 'height', ''); - } + if($('main').hasClass('fullscreen')) { + $('#events-calendar').fullCalendar('option', 'height', $(window).height() - $('.section-title-wrapper').outerHeight(true) - 2); // -2 is for border width (.generic-content-wrapper top and bottom) of .generic-content-wrapper } + $('#title').text(view.title); } |